Dela via


NotificationVisual.GetBinding(String) Method

Definition

Retrieves the binding with the specified template.

public:
 virtual NotificationBinding ^ GetBinding(Platform::String ^ templateName) = GetBinding;
NotificationBinding GetBinding(winrt::hstring const& templateName);
public NotificationBinding GetBinding(string templateName);
function getBinding(templateName)
Public Function GetBinding (templateName As String) As NotificationBinding

Parameters

templateName
String

Platform::String

winrt::hstring

The template for the binding visual. You can use the properties of the KnownNotificationBindings class to retrieve the string for each of the available template types.

Returns

The binding with the specified template, if it exists; otherwise, null.

Applies to