Share via


ListContractAdapter<TContract> Members

Include Protected Members
Include Inherited Members

This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.

Represents an IListContract<C> object.

The ListContractAdapter<TContract> type exposes the following members.

Constructors

 

Name

Description

Public method

ListContractAdapter<TContract>

Overloaded. Initializes a new instance of the ListContractAdapter<TContract> class.

Top

Methods

 

Name

Description

Public method

AcquireLifetimeToken

Obtains a lifetime token. (Inherited from ContractBase.)

Protected method

Add

Adds a specified contract to the list that this object encompasses.

Protected method

Clear

Removes all the elements from the list that this object encompasses.

Protected method

Contains

Determines if the list that this object encompasses contains a specified contract.

Protected method

CopyTo

Copies the contracts in the list that this object encompasses into an array.

Public method

CreateObjRef

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Protected method

GetCount

Returns the number of elements in the list that this instance encompasses.

Protected method

GetEnumeratorContract

Returns a new instance of a contract that represents an enumerator for the list that this instance encompasses.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Protected method

GetIsReadOnly

Returns a value that indicates whether this instance is read-only.

Protected method

GetItem

Returns the contract at a specified index of the list that this instance encompasses.

Public method

GetLifetimeService

Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)

Public method

GetRemoteHashCode

Returns a hash code for this instance. (Overrides ContractBase.GetRemoteHashCode().)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

IndexOf

Returns the index of a specified contract in the list that this instance encompasses.

Public method

InitializeLifetimeService

Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)

Protected method

Insert

Inserts a specified contract at a specified index in the list that this object encompasses.

Protected method

MemberwiseClone

Overloaded.

Protected method

OnFinalRevoke

Releases the unmanaged resources that this object holds. (Overrides ContractBase.OnFinalRevoke().)

Public method

QueryContract

Determines whether the current instance implements a specified contract and returns the instance if it implements the specified contract. (Overrides ContractBase.QueryContract(String).)

Public method

RemoteEquals

Determines whether the current instance is reference equal to a specified contract. (Overrides ContractBase.RemoteEquals(IContract).)

Public method

RemoteToString

Returns a string representation of the list that this object encompasses. (Overrides ContractBase.RemoteToString().)

Protected method

Remove

Removes a specified contract from the list that this object encompasses.

Protected method

RemoveAt

Removes the item at a specified index from the list that this object encompasses.

Public method

Renewal

Infrastructure. Requests a sponsoring client to renew the lease for the specified object. (Inherited from ContractBase.)

Public method

RevokeLifetimeToken

Removes the specified token from the list of outstanding lifetime tokens. (Inherited from ContractBase.)

Protected method

SetItem

Sets the element at a specified index in the list that this object encompasses, to a specified value.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

TypeInfrastructureManager

Gets the type infrastructure manager that contains the type maps and the service provider for the current ContractAdapterBase. (Inherited from ContractAdapterBase.)

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

ICollectionContract<TContract>.Add

For a description of this member, see ICollectionContract<C>.Add.

Explicit interface implemetationPrivate method

ICollectionContract<TContract>.Clear

For a description of this member, see ICollectionContract<C>.Clear.

Explicit interface implemetationPrivate method

ICollectionContract<TContract>.Contains

For a description of this member, see ICollectionContract<C>.Contains.

Explicit interface implemetationPrivate method

ICollectionContract<TContract>.CopyTo

For a description of this member, see ICollectionContract<C>.CopyTo.

Explicit interface implemetationPrivate method

ICollectionContract<TContract>.GetCount

For a description of this member, see ICollectionContract<C>.GetCount.

Explicit interface implemetationPrivate method

IEnumerableContract<TContract>.GetEnumeratorContract

For a description of this member, see IEnumerableContract<C>.GetEnumeratorContract.

Explicit interface implemetationPrivate method

ICollectionContract<TContract>.GetIsReadOnly

For a description of this member, see ICollectionContract<C>.GetIsReadOnly.

Explicit interface implemetationPrivate method

IListContract<TContract>.GetItem

For a description of this member, see IListContract<C>.GetItem.

Explicit interface implemetationPrivate method

IListContract<TContract>.IndexOf

For a description of this member, see IListContract<C>.IndexOf.

Explicit interface implemetationPrivate method

IListContract<TContract>.Insert

For a description of this member, see IListContract<C>.Insert.

Explicit interface implemetationPrivate method

ICollectionContract<TContract>.Remove

For a description of this member, see ICollectionContract<C>.Remove.

Explicit interface implemetationPrivate method

IListContract<TContract>.RemoveAt

For a description of this member, see IListContract<C>.RemoveAt.

Explicit interface implemetationPrivate method

IListContract<TContract>.SetItem

For a description of this member, see IListContract<C>.SetItem.

Top

See Also

Reference

ListContractAdapter<TContract> Class

Microsoft.VisualStudio.Tools.Applications Namespace