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.RegisterDynamicProperty

This allows users to register a property implementing IContributeDynamicSink with the remoting service. Based on the obj and ctx parameters, the property is asked to contribute a sink that is placed at some location in the path ofremoting calls. If multiple properties are registered, their sinks may be called in an arbitrary order that may change between calls.

[Visual Basic]
Public Shared Function RegisterDynamicProperty( _
   ByVal prop As IDynamicProperty, _
   ByVal obj As MarshalByRefObject, _
   ByVal ctx As Context _
) As Boolean
[C#]
public static bool RegisterDynamicProperty(
   IDynamicProperty prop,
   MarshalByRefObject obj,
   Context ctx
);
[C++]
public: static bool RegisterDynamicProperty(
   IDynamicProperty* prop,
   MarshalByRefObject* obj,
   Context* ctx
);
[JScript]
public static function RegisterDynamicProperty(
   prop : IDynamicProperty,
   obj : MarshalByRefObject,
   ctx : Context
) : Boolean;

Parameters

prop
[To be supplied.]
obj
[To be supplied.]
ctx

Return Value

Returns true if the property was successfully registered, else false

Exceptions

Exception Type Condition
ArgumentNullException is thrown if the property or property name is null
ArgumentException is thrown if both an object as well as a context is specified

Remarks

See Also

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