ISystemMediaTransportControls::remove_ButtonPressed method

Removes the specified event handler for the ButtonPressed event.

Syntax


HRESULT remove_ButtonPressed(
   EventRegistrationToken token
);

Parameters

token

Type: EventRegistrationToken

The registration token for the event handler. The token is obtained from the add_ButtonPressed method.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 10

Minimum supported server

Windows Server 2016 Technical Preview [desktop apps only]

Header

Windows.Media.SystemMediaTransportControls.h

IDL

Windows.Media.SystemMediaTransportControls.idl

See also

ISystemMediaTransportControls

 

 

Community Additions

ADD
Show: