語言

IArrayContract<C> 介面

定義

代表一個物件的通用陣列 IContract 。

generic <typename C>
 where C : IContractpublic interface class IArrayContract : System::AddIn::Contract::Collections::IEnumerableContract<C>
public interface IArrayContract<C> : System.AddIn.Contract.Collections.IEnumerableContract<C> where C : IContract
type IArrayContract<'C (requires 'C :> IContract)> = interface
    interface IEnumerableContract<'C (requires 'C :> IContract)>
    interface IContract
Public Interface IArrayContract(Of C)
Implements IEnumerableContract(Of C)

類型參數

C

陣列中項目的型別。 C必須實作介面。IContract

實作

備註

使用 an IArrayContract<C> 透過參考在合約間傳遞物件陣列 IContract 。

An IArrayContract<C> 不會動態調整自身大小。

方法

名稱 Description
AcquireLifetimeToken()

規定合約在客戶撤銷合約前仍可取得。

(繼承來源 IContract)
GetCount()

回傳包含於 IArrayContract<C>的元素數量。

GetEnumeratorContract()

傳回逐一查看集合的列舉值。

(繼承來源 IEnumerableContract<C>)
GetItem(Int32)

回傳指定索引的元素。

GetRemoteHashCode()

回傳一個雜湊碼。IContract

(繼承來源 IContract)
QueryContract(String)

回傳由該合約實作的合約。

(繼承來源 IContract)
RemoteEquals(IContract)

表示指定的契約是否等於此。IContract

(繼承來源 IContract)
RemoteToString()

回傳當前 IContract的字串表示。

(繼承來源 IContract)
RevokeLifetimeToken(Int32)

規定合約不再對客戶開放。

(繼承來源 IContract)
SetItem(Int32, C)

將指定索引的元素替換為指定的 IContract。

適用於