Context.SetProperty(IContextProperty) 方法

定義

透過名稱設定特定的上下文屬性。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 virtual void SetProperty(System::Runtime::Remoting::Contexts::IContextProperty ^ prop);
public virtual void SetProperty(System.Runtime.Remoting.Contexts.IContextProperty prop);
[System.Security.SecurityCritical]
public virtual void SetProperty(System.Runtime.Remoting.Contexts.IContextProperty prop);
abstract member SetProperty : System.Runtime.Remoting.Contexts.IContextProperty -> unit
override this.SetProperty : System.Runtime.Remoting.Contexts.IContextProperty -> unit
[<System.Security.SecurityCritical>]
abstract member SetProperty : System.Runtime.Remoting.Contexts.IContextProperty -> unit
override this.SetProperty : System.Runtime.Remoting.Contexts.IContextProperty -> unit
Public Overridable Sub SetProperty (prop As IContextProperty)

參數

prop
IContextProperty

實際的上下文屬性。

屬性

例外狀況

情境凍結了。

該物業或物業名稱為 null

備註

不允許在預設上下文中新增屬性。

適用於