Context.SetProperty(IContextProperty) Methode

Definition

Legt eine bestimmte Kontexteigenschaft anhand des Namens fest.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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)

Parameter

prop
IContextProperty

Die tatsächliche Kontexteigenschaft.

Attribute

Ausnahmen

Der Kontext ist fixiert.

Die Eigenschaft oder der Eigenschaftsname lautet null.

Hinweise

Das Hinzufügen von Eigenschaften zum Standardkontext ist nicht zulässig.

Gilt für: