Язык

Context.SetProperty(IContextProperty) Метод

Определение

Задает определенное свойство контекста по имени.

Этот API поддерживает инфраструктуру продукта и не предназначен для использования непосредственно из программного кода.

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)

Параметры

prop
IContextProperty

Фактическое свойство контекста.

Атрибуты

Исключения

Контекст заморожен.

Свойство или имя свойства .null

Комментарии

Добавление свойств в контекст по умолчанию запрещено.

Применяется к