共用方式為


SystemBackdrop.OnTargetDisconnected 方法

定義

從其容器清除此物件時呼叫。

protected:
 virtual void OnTargetDisconnected(ICompositionSupportsSystemBackdrop ^ disconnectedTarget) = OnTargetDisconnected;
void OnTargetDisconnected(ICompositionSupportsSystemBackdrop const& disconnectedTarget);
protected virtual void OnTargetDisconnected(ICompositionSupportsSystemBackdrop disconnectedTarget);
function onTargetDisconnected(disconnectedTarget)
Protected Overridable Sub OnTargetDisconnected (disconnectedTarget As ICompositionSupportsSystemBackdrop)

參數

disconnectedTarget
ICompositionSupportsSystemBackdrop

底下的目標。

範例

如需完整範例,請參閱 SystemBackdrop

protected override void OnTargetDisconnected(ICompositionSupportsSystemBackdrop disconnectedTarget)
{
    base.OnTargetDisconnected(disconnectedTarget);

    micaController.RemoveSystemBackdropTarget(disconnectedTarget);
    micaController = null;
}

適用於

另請參閱