INativeHandleContract INativeHandleContract INativeHandleContract INativeHandleContract Interface


Provides access to a window's handle (Hwnd) from native code.

public interface class INativeHandleContract : System::AddIn::Contract::IContract
public interface INativeHandleContract : System.AddIn.Contract.IContract
type INativeHandleContract = interface
    interface IContract
Public Interface INativeHandleContract
Implements IContract


This interface enables adding user interface features to add-ins by obtaining handles to native Window resources and passing them between application domains.


AcquireLifetimeToken() AcquireLifetimeToken() AcquireLifetimeToken() AcquireLifetimeToken()

Specifies that the contract is accessible to a client until the client revokes the contract.

(Inherited from IContract)
GetHandle() GetHandle() GetHandle() GetHandle()

Obtains the window's handle (Hwnd).

GetRemoteHashCode() GetRemoteHashCode() GetRemoteHashCode() GetRemoteHashCode()

Returns a hash code for the IContract.

(Inherited from IContract)
QueryContract(String) QueryContract(String) QueryContract(String) QueryContract(String)

Returns a contract that is implemented by this contract.

(Inherited from IContract)
RemoteEquals(IContract) RemoteEquals(IContract) RemoteEquals(IContract) RemoteEquals(IContract)

Indicates whether the specified contract is equal to this IContract.

(Inherited from IContract)
RemoteToString() RemoteToString() RemoteToString() RemoteToString()

Returns a string representation of the current IContract.

(Inherited from IContract)
RevokeLifetimeToken(Int32) RevokeLifetimeToken(Int32) RevokeLifetimeToken(Int32) RevokeLifetimeToken(Int32)

Specifies that the contract is no longer accessible to a client.

(Inherited from IContract)

Applies to