Context.SetProperty(IContextProperty) Metod

Definition

Anger en specifik kontextegenskap efter namn.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

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)

Parametrar

prop
IContextProperty

Den faktiska kontextegenskapen.

Attribut

Undantag

Kontexten är låst.

Egenskapen eller egenskapsnamnet är null.

Kommentarer

Det går inte att lägga till egenskaper i standardkontexten.

Gäller för