ModelFactory.CreateStaticMemberItem Method (EditingContext, TypeIdentifier, String)

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

  • 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

See Also

Reference

ModelFactory Class

CreateStaticMemberItem Overload

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility

Editing Model Architecture