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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.