Principal.ExtensionSet(String, Object) 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在擴充類別中設定屬性 (Attribute) 的值。
protected:
void ExtensionSet(System::String ^ attribute, System::Object ^ value);
C#
protected void ExtensionSet(string attribute, object value);
C#
[System.Security.SecurityCritical]
protected void ExtensionSet(string attribute, object value);
member this.ExtensionSet : string * obj -> unit
[<System.Security.SecurityCritical>]
member this.ExtensionSet : string * obj -> unit
Protected Sub ExtensionSet (attribute As String, value As Object)
- attribute
- String
屬性的名稱。
- value
- Object
包含屬性 (Attribute) 值的物件。
- 屬性
如需此函式的範例,請參閱 System.DirectoryServices.AccountManagement 主體延伸模組 。
產品 | 版本 |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |