241 lines
12 KiB
C#
241 lines
12 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Runtime.Remoting.Channels
|
|
{
|
|
/// <summary>Provides a base implementation of a channel object that exposes a dictionary interface to its properties.</summary>
|
|
// Token: 0x02000390 RID: 912
|
|
[ComVisible(true)]
|
|
public abstract class BaseChannelObjectWithProperties : IEnumerable, ICollection, IDictionary
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties" /> class.</summary>
|
|
// Token: 0x0600253E RID: 9534 RVA: 0x0007B6F0 File Offset: 0x000798F0
|
|
protected BaseChannelObjectWithProperties()
|
|
{
|
|
this.table = new Hashtable();
|
|
}
|
|
|
|
/// <summary>Returns a <see cref="T:System.Collections.IEnumerator" /> that enumerates over all the properties that are associated with the channel object.</summary>
|
|
/// <returns>A <see cref="T:System.Collections.IEnumerator" /> that enumerates over all the properties that are associated with the channel object.</returns>
|
|
// Token: 0x0600253F RID: 9535 RVA: 0x0007B704 File Offset: 0x00079904
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return this.table.GetEnumerator();
|
|
}
|
|
|
|
/// <summary>Gets the number of properties associated with the channel object.</summary>
|
|
/// <returns>The number of properties associated with the channel object.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x170006E8 RID: 1768
|
|
// (get) Token: 0x06002540 RID: 9536 RVA: 0x0007B714 File Offset: 0x00079914
|
|
public virtual int Count
|
|
{
|
|
get
|
|
{
|
|
return this.table.Count;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value that indicates whether the number of properties that can be entered into the channel object is fixed.</summary>
|
|
/// <returns>true if the number of properties that can be entered into the channel object is fixed; otherwise, false.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x170006E9 RID: 1769
|
|
// (get) Token: 0x06002541 RID: 9537 RVA: 0x0007B724 File Offset: 0x00079924
|
|
public virtual bool IsFixedSize
|
|
{
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value that indicates whether the collection of properties in the channel object is read-only.</summary>
|
|
/// <returns>true if the collection of properties in the channel object is read-only; otherwise, false.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x170006EA RID: 1770
|
|
// (get) Token: 0x06002542 RID: 9538 RVA: 0x0007B728 File Offset: 0x00079928
|
|
public virtual bool IsReadOnly
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value that indicates whether the dictionary of channel object properties is synchronized.</summary>
|
|
/// <returns>true if the dictionary of channel object properties is synchronized; otherwise, false.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x170006EB RID: 1771
|
|
// (get) Token: 0x06002543 RID: 9539 RVA: 0x0007B72C File Offset: 0x0007992C
|
|
public virtual bool IsSynchronized
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, gets or sets the property that is associated with the specified key.</summary>
|
|
/// <returns>The property that is associated with the specified key.</returns>
|
|
/// <param name="key">The key of the property to get or set. </param>
|
|
/// <exception cref="T:System.NotImplementedException">The property is accessed. </exception>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x170006EC RID: 1772
|
|
public virtual object this[object key]
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
set
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, gets a <see cref="T:System.Collections.ICollection" /> of keys that the channel object properties are associated with.</summary>
|
|
/// <returns>A <see cref="T:System.Collections.ICollection" /> of keys that the channel object properties are associated with.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x170006ED RID: 1773
|
|
// (get) Token: 0x06002546 RID: 9542 RVA: 0x0007B740 File Offset: 0x00079940
|
|
public virtual ICollection Keys
|
|
{
|
|
get
|
|
{
|
|
return this.table.Keys;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Collections.IDictionary" /> of the channel properties associated with the channel object.</summary>
|
|
/// <returns>A <see cref="T:System.Collections.IDictionary" /> of the channel properties associated with the channel object.</returns>
|
|
/// <exception cref="T:System.Security.SecurityException">The immediate caller does not have infrastructure permission. </exception>
|
|
// Token: 0x170006EE RID: 1774
|
|
// (get) Token: 0x06002547 RID: 9543 RVA: 0x0007B750 File Offset: 0x00079950
|
|
public virtual IDictionary Properties
|
|
{
|
|
get
|
|
{
|
|
return this;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets an object that is used to synchronize access to the <see cref="T:System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties" />.</summary>
|
|
/// <returns>An object that is used to synchronize access to the <see cref="T:System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties" />.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x170006EF RID: 1775
|
|
// (get) Token: 0x06002548 RID: 9544 RVA: 0x0007B754 File Offset: 0x00079954
|
|
public virtual object SyncRoot
|
|
{
|
|
get
|
|
{
|
|
return this;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Collections.ICollection" /> of the values of the properties associated with the channel object.</summary>
|
|
/// <returns>A <see cref="T:System.Collections.ICollection" /> of the values of the properties associated with the channel object.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x170006F0 RID: 1776
|
|
// (get) Token: 0x06002549 RID: 9545 RVA: 0x0007B758 File Offset: 0x00079958
|
|
public virtual ICollection Values
|
|
{
|
|
get
|
|
{
|
|
return this.table.Values;
|
|
}
|
|
}
|
|
|
|
/// <summary>Throws a <see cref="T:System.NotSupportedException" />.</summary>
|
|
/// <param name="key">The key that is associated with the object in the <paramref name="value" /> parameter. </param>
|
|
/// <param name="value">The value to add. </param>
|
|
/// <exception cref="T:System.NotSupportedException">The method is called. </exception>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x0600254A RID: 9546 RVA: 0x0007B768 File Offset: 0x00079968
|
|
public virtual void Add(object key, object value)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
/// <summary>Throws a <see cref="T:System.NotSupportedException" />.</summary>
|
|
/// <exception cref="T:System.NotSupportedException">The method is called. </exception>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x0600254B RID: 9547 RVA: 0x0007B770 File Offset: 0x00079970
|
|
public virtual void Clear()
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
/// <summary>Returns a value that indicates whether the channel object contains a property that is associated with the specified key.</summary>
|
|
/// <returns>true if the channel object contains a property associated with the specified key; otherwise, false.</returns>
|
|
/// <param name="key">The key of the property to look for. </param>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x0600254C RID: 9548 RVA: 0x0007B778 File Offset: 0x00079978
|
|
public virtual bool Contains(object key)
|
|
{
|
|
return this.table.Contains(key);
|
|
}
|
|
|
|
/// <summary>Throws a <see cref="T:System.NotSupportedException" />.</summary>
|
|
/// <param name="array">The array to copy the properties to. </param>
|
|
/// <param name="index">The index at which to begin copying. </param>
|
|
/// <exception cref="T:System.NotSupportedException">The method is called. </exception>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x0600254D RID: 9549 RVA: 0x0007B788 File Offset: 0x00079988
|
|
public virtual void CopyTo(Array array, int index)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
/// <summary>Returns a <see cref="T:System.Collections.IDictionaryEnumerator" /> that enumerates over all the properties associated with the channel object.</summary>
|
|
/// <returns>A <see cref="T:System.Collections.IDictionaryEnumerator" /> that enumerates over all the properties associated with the channel object.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x0600254E RID: 9550 RVA: 0x0007B790 File Offset: 0x00079990
|
|
public virtual IDictionaryEnumerator GetEnumerator()
|
|
{
|
|
return this.table.GetEnumerator();
|
|
}
|
|
|
|
/// <summary>Throws a <see cref="T:System.NotSupportedException" />.</summary>
|
|
/// <param name="key">The key of the object to be removed. </param>
|
|
/// <exception cref="T:System.NotSupportedException">The method is called. </exception>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
|
|
/// </PermissionSet>
|
|
// Token: 0x0600254F RID: 9551 RVA: 0x0007B7A0 File Offset: 0x000799A0
|
|
public virtual void Remove(object key)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
// Token: 0x04000EA4 RID: 3748
|
|
private Hashtable table;
|
|
}
|
|
}
|