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.
When overridden in a derived class, requests that the specified method is called when a service of the specified type is available.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public MustOverride Sub Subscribe ( _
serviceType As Type, _
callback As SubscribeServiceCallback _
)
public abstract void Subscribe(
Type serviceType,
SubscribeServiceCallback callback
)
public:
virtual void Subscribe(
Type^ serviceType,
SubscribeServiceCallback^ callback
) abstract
abstract Subscribe :
serviceType:Type *
callback:SubscribeServiceCallback -> unit
public abstract function Subscribe(
serviceType : Type,
callback : SubscribeServiceCallback
)
Parameters
- serviceType
Type: System.Type
The type of service to subscribe to.
- callback
Type: Microsoft.Windows.Design.SubscribeServiceCallback
The method to invoke when the service is available.
Remarks
If the service is already available, this specified method is called immediately.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design Namespace