BaseChannelWithProperties Class

Definition

Provides a base implementation for channels that want to expose a dictionary interface to their properties.

public ref class BaseChannelWithProperties abstract : System::Runtime::Remoting::Channels::BaseChannelObjectWithProperties
public abstract class BaseChannelWithProperties : System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class BaseChannelWithProperties : System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public abstract class BaseChannelWithProperties : System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties
type BaseChannelWithProperties = class
    inherit BaseChannelObjectWithProperties
[<System.Runtime.InteropServices.ComVisible(true)>]
type BaseChannelWithProperties = class
    inherit BaseChannelObjectWithProperties
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
type BaseChannelWithProperties = class
    inherit BaseChannelObjectWithProperties
Public MustInherit Class BaseChannelWithProperties
Inherits BaseChannelObjectWithProperties
Inheritance
BaseChannelWithProperties
Derived
Attributes

Remarks

Important

Calling methods from this class with untrusted data is a security risk. Call the methods from this class only with trusted data. For more information, see Validate All Inputs.

The BaseChannelWithProperties class handles the complexity of asking the sinks in a channel sink chain for their properties. After the channel constructs its sink chain (if applicable), it must set the SinksWithProperties property.

This class makes a link demand and an inheritance demand at the class level. A SecurityException is thrown when either the immediate caller or the derived class does not have infrastructure permission. For details about security demands, see Link Demands and Inheritance Demands.

Notes to Implementers

When you inherit from BaseChannelWithProperties, you must implement the Keys property and the Item[Object] property.

Constructors

BaseChannelWithProperties()

Initializes a new instance of the BaseChannelWithProperties class.

Fields

SinksWithProperties

Indicates the top channel sink in the channel sink stack.

Properties

Count

Gets the number of properties associated with the channel object.

(Inherited from BaseChannelObjectWithProperties)
IsFixedSize

Gets a value that indicates whether the number of properties that can be entered into the channel object is fixed.

(Inherited from BaseChannelObjectWithProperties)
IsReadOnly

Gets a value that indicates whether the collection of properties in the channel object is read-only.

(Inherited from BaseChannelObjectWithProperties)
IsSynchronized

Gets a value that indicates whether the dictionary of channel object properties is synchronized.

(Inherited from BaseChannelObjectWithProperties)
Item[Object]

When overridden in a derived class, gets or sets the property that is associated with the specified key.

(Inherited from BaseChannelObjectWithProperties)
Keys

When overridden in a derived class, gets a ICollection of keys that the channel object properties are associated with.

(Inherited from BaseChannelObjectWithProperties)
Properties

Gets a IDictionary of the channel properties associated with the current channel object.

SyncRoot

Gets an object that is used to synchronize access to the BaseChannelObjectWithProperties.

(Inherited from BaseChannelObjectWithProperties)
Values

Gets a ICollection of the values of the properties associated with the channel object.

(Inherited from BaseChannelObjectWithProperties)

Methods

Add(Object, Object)

Throws a NotSupportedException.

(Inherited from BaseChannelObjectWithProperties)
Clear()

Throws a NotSupportedException.

(Inherited from BaseChannelObjectWithProperties)
Contains(Object)

Returns a value that indicates whether the channel object contains a property that is associated with the specified key.

(Inherited from BaseChannelObjectWithProperties)
CopyTo(Array, Int32)

Throws a NotSupportedException.

(Inherited from BaseChannelObjectWithProperties)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns a IDictionaryEnumerator that enumerates over all the properties associated with the channel object.

(Inherited from BaseChannelObjectWithProperties)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(Object)

Throws a NotSupportedException.

(Inherited from BaseChannelObjectWithProperties)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns a IEnumerator that enumerates over all the properties that are associated with the channel object.

(Inherited from BaseChannelObjectWithProperties)

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to