NotificationVisual.GetBinding(String) NotificationVisual.GetBinding(String) NotificationVisual.GetBinding(String) NotificationVisual.GetBinding(String) NotificationVisual.GetBinding(String) Method

Definition

Retrieves the binding with the specified template.

public : NotificationBinding GetBinding(Platform::String templateName)
NotificationBinding GetBinding(winrt::hstring templateName) const;
public NotificationBinding GetBinding(String templateName)
Public Function GetBinding(templateName As String) As NotificationBinding
var notificationBinding = notificationVisual.getBinding(templateName);

Parameters

templateName
String String String

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.