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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.