Επεξεργασία

Κοινή χρήση μέσω


Context.SetProperty(IContextProperty) Method

Definition

Sets a specific context property by name.

This API supports the product infrastructure and is not intended to be used directly from your code.

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)

Parameters

prop
IContextProperty

The actual context property.

Attributes

Exceptions

The context is frozen.

The property or the property name is null.

Remarks

Adding properties to the default context is not allowed.

Applies to