C# 클래스 Microsoft.Protocols.TestSuites.MS_OXORULE.NspiRpcAdapter

The NspiRpcAdapter class contains the RPC implements for the interfaces of IMS_OXNSPIAdapter.
상속: Microsoft.Protocols.TestTools.ManagedAdapterBase
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites 1 사용 예제들

공개 메소드들

메소드 설명
NspiBind ( uint flags, STAT stat, FlatUID_r &serverGuid, bool needRetry = true ) : ErrorCodeValue

The NspiBind method initiates a session between a client and the server.

NspiQueryRows ( uint flags, STAT &stat, uint tableCount, uint table, uint count, PropertyTagArray_r propTags, PropertyRowSet_r &rows, bool needRetry = true ) : ErrorCodeValue

The NspiQueryRows method returns a number of rows from a specified table to the client.

NspiRpcAdapter ( ITestSite site, IntPtr rpcBinding, IntPtr contextHandle, int waitTime, uint maxRetryCount ) : System

Initializes a new instance of the NspiRpcAdapter class.

NspiUnbind ( uint reserved, IntPtr &contextHandle ) : uint

The NspiUnbind method destroys the context handle. No other action is taken.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

This method is used to implement clean-up codes.

메소드 상세

Dispose() 보호된 메소드

This method is used to implement clean-up codes.
protected Dispose ( bool disposing ) : void
disposing bool Set TRUE to dispose resource otherwise set FALSE.
리턴 void

NspiBind() 공개 메소드

The NspiBind method initiates a session between a client and the server.
public NspiBind ( uint flags, STAT stat, FlatUID_r &serverGuid, bool needRetry = true ) : ErrorCodeValue
flags uint A DWORD value that contains a set of bit flags.
stat STAT A pointer to a STAT block that describes a logical position in a specific address book container.
serverGuid FlatUID_r The value NULL or a pointer to a GUID value that is associated with the specific server.
needRetry bool A Boolean value indicates if need to retry to get an expected result. This parameter is designed to avoid meaningless retry when an error response is expected.
리턴 ErrorCodeValue

NspiQueryRows() 공개 메소드

The NspiQueryRows method returns a number of rows from a specified table to the client.
public NspiQueryRows ( uint flags, STAT &stat, uint tableCount, uint table, uint count, PropertyTagArray_r propTags, PropertyRowSet_r &rows, bool needRetry = true ) : ErrorCodeValue
flags uint A DWORD value that contains a set of bit flags.
stat STAT A STAT block that describes a logical position in a specific address book container.
tableCount uint A DWORD value that contains the number values in the input parameter table. /// This value is limited to 100,000.
table uint An array of DWORD values, representing an Explicit Table.
count uint A DWORD value that contains the number of rows the client is requesting.
propTags PropertyTagArray_r The value NULL or a reference to a PropertyTagArray_r value, /// containing a list of the proptags of the properties that the client requires to be returned for each row returned.
rows PropertyRowSet_r A nullable PropertyRowSet_r value, it contains the address book container rows that the server returns in response to the request.
needRetry bool A bool value indicates if need to retry to get an expected result. This parameter is designed to avoid meaningless retry when an error response is expected.
리턴 ErrorCodeValue

NspiRpcAdapter() 공개 메소드

Initializes a new instance of the NspiRpcAdapter class.
public NspiRpcAdapter ( ITestSite site, IntPtr rpcBinding, IntPtr contextHandle, int waitTime, uint maxRetryCount ) : System
site ITestSite The site instance.
rpcBinding System.IntPtr The RPC binding.
contextHandle System.IntPtr The RPC context handle.
waitTime int The time internal that is used to wait to retry when the returned error code is GeneralFailure.
maxRetryCount uint The retry count that is used to retry when the returned error code is GeneralFailure.
리턴 System

NspiUnbind() 공개 메소드

The NspiUnbind method destroys the context handle. No other action is taken.
public NspiUnbind ( uint reserved, IntPtr &contextHandle ) : uint
reserved uint A DWORD [MS-DTYP] value reserved for future use. This property is ignored by the server.
contextHandle System.IntPtr The RPC context handle.
리턴 uint