Context.SetProperty(IContextProperty) Metoda

Definicja

Ustawia określoną właściwość kontekstu według nazwy.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

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)

Parametry

prop
IContextProperty

Rzeczywista właściwość kontekstu.

Atrybuty

Wyjątki

Kontekst jest zamrożony.

Właściwość lub nazwa właściwości to null.

Uwagi

Dodawanie właściwości do kontekstu domyślnego jest niedozwolone.

Dotyczy