Share via


ModelFactory.CreateStaticMemberItem Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a new ModelItem that represents the value of a static member of the given class.

Namespace:  System.Activities.Design.Model
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)

Syntax

'Declaration
Public Shared Function CreateStaticMemberItem ( _
    context As EditingContext, _
    type As Type, _
    memberName As String _
) As ModelItem
'Usage
Dim context As EditingContext
Dim type As Type
Dim memberName As String
Dim returnValue As ModelItem

returnValue = ModelFactory.CreateStaticMemberItem(context, _
    type, memberName)
public static ModelItem CreateStaticMemberItem(
    EditingContext context,
    Type type,
    string memberName
)
public:
static ModelItem^ CreateStaticMemberItem(
    EditingContext^ context, 
    Type^ type, 
    String^ memberName
)
public static function CreateStaticMemberItem(
    context : EditingContext, 
    type : Type, 
    memberName : String
) : ModelItem
static member CreateStaticMemberItem : 
        context:EditingContext * 
        type:Type * 
        memberName:string -> ModelItem 

Parameters

  • type
    Type: System.Type
    The type that contains the static member being referenced.
  • memberName
    Type: System.String
    The name of the static member being referenced.

Return Value

Type: System.Activities.Design.Model.ModelItem
Returns the newly created ModelItem.

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

ModelFactory Class

ModelFactory Members

System.Activities.Design.Model Namespace