Context.SetProperty(IContextProperty) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.