Sets a specific context property by name.
[Visual Basic] Overridable Public Sub SetProperty( _ ByVal prop As IContextProperty _ ) [C#] public virtual void SetProperty( IContextProperty prop ); [C++] public: virtual void SetProperty( IContextProperty* prop ); [JScript] public function SetProperty( prop : IContextProperty );
Exception Type | Condition |
---|---|
InvalidOperationException | is thrown when there is an attempt to add properties to the default context |
InvalidOperationException | is thrown if the context is frozen |
ArgumentNullException | is thrown when property or the property name is NULL |
Context Class | Context Members | System.Runtime.Remoting Namespace