Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Defines the methods that a shutdown callback object must implement.
Namespace: Microsoft.SmartDevice.DeviceAgentTransport
Assembly: Microsoft.SmartDevice.DeviceAgentTransport (in Microsoft.SmartDevice.DeviceAgentTransport.dll)
Syntax
'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("1ECA6EBC-4B7A-4BA6-8516-DB38DF0045A5")> _
Public Interface IAgentTransportShutdownCallback
'Usage
Dim instance As IAgentTransportShutdownCallback
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("1ECA6EBC-4B7A-4BA6-8516-DB38DF0045A5")]
public interface IAgentTransportShutdownCallback
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[GuidAttribute(L"1ECA6EBC-4B7A-4BA6-8516-DB38DF0045A5")]
public interface class IAgentTransportShutdownCallback
public interface IAgentTransportShutdownCallback
Remarks
A device agent is useful as long as conmanclient2.exe is running on the device. When conmanclient2.exe is shutdown, all device agents are also shutdown. A device agent can request to receive shutdown notification to perform cleanup and exit gracefully. In order to receive shutdown notification, the device agent must define a class that implements this interface and then register it using IDeviceAgentTransport.RegisterShutdownCallback.
Examples
' Define your own shutdown implementation
Class ShutdownCallback
Implements IAgentTransportShutdownCallback
Sub Shutdown(ByVal in_pUnknown As Object) _
Implements IAgentTransportShutdownCallback.Shutdown
' Insert cleanup code here
End Sub 'Shutdown
End Class 'ShutdownCallback
// Define your own shutdown implementation
class ShutdownCallback : IAgentTransportShutdownCallback
{
public void Shutdown(object in_pUnknown)
{
// Insert cleanup code here
}
}