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;
Returns true if the property was successfully registered, else false
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 |
Context Class | Context Members | System.Runtime.Remoting Namespace