IAgentTransportShutdownCallback.Shutdown 方法

更新:2007 年 11 月

为设备端代理提供执行清理和退出的机会。

命名空间:  Microsoft.SmartDevice.DeviceAgentTransport
程序集:  Microsoft.SmartDevice.DeviceAgentTransport(在 Microsoft.SmartDevice.DeviceAgentTransport.dll 中)

语法

声明
Sub Shutdown ( _
    in_pUnknown As Object _
)
用法
Dim instance As IAgentTransportShutdownCallback
Dim in_pUnknown As Object

instance.Shutdown(in_pUnknown)
void Shutdown(
    Object in_pUnknown
)
void Shutdown(
    [InAttribute] Object^ in_pUnknown
)
function Shutdown(
    in_pUnknown : Object
)

参数

异常

异常 条件
COMException

HRESULT 信息:

  • S_OK | 此 API 调用已成功。

  • E_FAIL | 返回指示任何其他失败情况的值。

示例

' 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
    }
}

权限

另请参见

参考

IAgentTransportShutdownCallback 接口

IAgentTransportShutdownCallback 成员

Microsoft.SmartDevice.DeviceAgentTransport 命名空间