NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Context.SetProperty

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
);

Parameters

prop
Actual context property.

Exceptions

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

See Also

Context Class | Context Members | System.Runtime.Remoting Namespace