BaseChannelWithProperties BaseChannelWithProperties BaseChannelWithProperties 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
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public abstract class BaseChannelWithProperties : System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties
type BaseChannelWithProperties = class
    inherit BaseChannelObjectWithProperties
Public MustInherit Class BaseChannelWithProperties
Inherits BaseChannelObjectWithProperties
Inheritance
BaseChannelWithPropertiesBaseChannelWithPropertiesBaseChannelWithPropertiesBaseChannelWithProperties
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 Data Validation.

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 Inheritors

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

Constructors

BaseChannelWithProperties() BaseChannelWithProperties() BaseChannelWithProperties() BaseChannelWithProperties()

Initializes a new instance of the BaseChannelWithProperties class.

Fields

SinksWithProperties SinksWithProperties SinksWithProperties SinksWithProperties

Indicates the top channel sink in the channel sink stack.

Properties

Count Count Count Count

Gets the number of properties associated with the channel object.

(Inherited from BaseChannelObjectWithProperties)
IsFixedSize IsFixedSize IsFixedSize 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 IsReadOnly IsReadOnly IsReadOnly

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

(Inherited from BaseChannelObjectWithProperties)
IsSynchronized IsSynchronized IsSynchronized IsSynchronized

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

(Inherited from BaseChannelObjectWithProperties)
Item[Object] Item[Object] Item[Object] Item[Object]

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

(Inherited from BaseChannelObjectWithProperties)
Keys Keys Keys Keys

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

(Inherited from BaseChannelObjectWithProperties)
Properties Properties Properties Properties

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

SyncRoot SyncRoot SyncRoot SyncRoot

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

(Inherited from BaseChannelObjectWithProperties)
Values Values Values Values

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

(Inherited from BaseChannelObjectWithProperties)

Methods

Add(Object, Object) Add(Object, Object) Add(Object, Object) Add(Object, Object)

Throws a NotSupportedException.

(Inherited from BaseChannelObjectWithProperties)
Clear() Clear() Clear() Clear()

Throws a NotSupportedException.

(Inherited from BaseChannelObjectWithProperties)
Contains(Object) Contains(Object) Contains(Object) 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) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Throws a NotSupportedException.

(Inherited from BaseChannelObjectWithProperties)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

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

(Inherited from BaseChannelObjectWithProperties)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(Object) Remove(Object) Remove(Object) Remove(Object)

Throws a NotSupportedException.

(Inherited from BaseChannelObjectWithProperties)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() 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) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Security

SecurityPermission
For operating with infrastructure code. Demand value: InheritanceDemand; Permission Value: Infrastructure

Applies to