NotificationVisual.GetBinding(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.