共用方式為


PropertyIdentifier 建構函式 (Type, String)

使用指定的現有型別和屬性名稱,初始化 PropertyIdentifier 類別的新執行個體。

命名空間:  Microsoft.Windows.Design.Metadata
組件:  Microsoft.Windows.Design.Extensibility (在 Microsoft.Windows.Design.Extensibility.dll 中)

語法

'宣告
Public Sub New ( _
    declaringType As Type, _
    name As String _
)
public PropertyIdentifier(
    Type declaringType,
    string name
)
public:
PropertyIdentifier(
    Type^ declaringType, 
    String^ name
)
new : 
        declaringType:Type * 
        name:string -> PropertyIdentifier
public function PropertyIdentifier(
    declaringType : Type, 
    name : String
)

參數

  • declaringType
    型別:System.Type
    宣告這個屬性時做為依據的型別。

例外狀況

例外狀況 條件
ArgumentNullException

declaringType 或 name 是 nullNull 參照 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

PropertyIdentifier 結構

PropertyIdentifier 多載

Microsoft.Windows.Design.Metadata 命名空間