ChannelServices.GetChannelSinkProperties Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns a IDictionary of properties for a given proxy.

Namespace:   System.Runtime.Remoting.Channels
Assembly:  mscorlib (in mscorlib.dll)

<SecurityPermissionAttribute(SecurityAction.Demand, Flags := SecurityPermissionFlag.RemotingConfiguration)>
Public Shared Function GetChannelSinkProperties (
	obj As Object
) As IDictionary


Type: System.Object

The proxy to retrieve properties for.

Return Value

Type: System.Collections.IDictionary

An interface to the dictionary of properties, or null if no properties were found.

Exception Condition

At least one of the callers that is higher in the callstack does not have permission to configure remoting types and channels.

' Get an IDictionary of properties for a given proxy.
Dim myDictionary As IDictionary = ChannelServices.GetChannelSinkProperties(myProxy)
Dim myKeysCollection As ICollection = myDictionary.Keys
Dim myKeysArray(myKeysCollection.Count-1) As Object
Dim myValuesCollection As ICollection = myDictionary.Values
Dim myValuesArray(myValuesCollection.Count-1) As Object
myKeysCollection.CopyTo(myKeysArray, 0)
myValuesCollection.CopyTo(myValuesArray, 0)
Dim iIndex As Integer
For iIndex = 0 To myKeysArray.Length - 1
   Console.Write("Property Name : " & myKeysArray(iIndex) & " value : ")
Next iIndex


For configuration of the remoting infrastructure. Demand value: SecurityAction.Demand; Permission value: SecurityPermissionFlag.RemotingConfiguration

.NET Framework
Available since 1.1
Return to top