ModelFactory.CreateStaticMemberItem 메서드 (EditingContext, TypeIdentifier, String)
지정된 클래스의 정적 멤버 값을 나타내는 새 모델 항목을 만듭니다.
네임스페이스: Microsoft.Windows.Design.Model
어셈블리: Microsoft.Windows.Design.Interaction(Microsoft.Windows.Design.Interaction.dll)
구문
‘선언
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
매개 변수
- context
형식: Microsoft.Windows.Design.EditingContext
디자이너의 편집 컨텍스트입니다.
- typeIdentifier
형식: Microsoft.Windows.Design.Metadata.TypeIdentifier
참조되는 형식의 식별자입니다.
- memberName
형식: System.String
참조되는 정적 멤버의 이름입니다.
반환 값
형식: Microsoft.Windows.Design.Model.ModelItem
새로 만든 항목 형식을 나타내는 ModelItem입니다.이 메서드는 형식 식별자를 확인할 수 없는 경우 nullNull 참조(Visual Basic의 경우 Nothing)을 반환할 수 있습니다.
예외
예외 | 상황 |
---|---|
ArgumentNullException | context 또는 memberName가 nullNull 참조(Visual Basic의 경우 Nothing)인 경우 |
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
참고 항목
참조
Microsoft.Windows.Design.Model 네임스페이스