Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a new model item that represents the value of a static member of the specified class.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Function CreateStaticMemberItem ( _
context As EditingContext, _
typeIdentifier As TypeIdentifier, _
memberName As String _
) As ModelItem
public static ModelItem CreateStaticMemberItem(
EditingContext context,
TypeIdentifier typeIdentifier,
string memberName
)
public:
static ModelItem^ CreateStaticMemberItem(
EditingContext^ context,
TypeIdentifier typeIdentifier,
String^ memberName
)
static member CreateStaticMemberItem :
context:EditingContext *
typeIdentifier:TypeIdentifier *
memberName:string -> ModelItem
public static function CreateStaticMemberItem(
context : EditingContext,
typeIdentifier : TypeIdentifier,
memberName : String
) : ModelItem
Parameters
- context
Type: Microsoft.Windows.Design.EditingContext
The designer's editing context.
- typeIdentifier
Type: Microsoft.Windows.Design.Metadata.TypeIdentifier
An identifier for the type being referenced.
- memberName
Type: System.String
The name of the static member being referenced.
Return Value
Type: Microsoft.Windows.Design.Model.ModelItem
A ModelItem that represents the newly created item type. This method might return nulla null reference (Nothing in Visual Basic) if the type identifier could not be resolved.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | context or memberName is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
CreateStaticMemberItem Overload
Microsoft.Windows.Design.Model Namespace