IProtectionEngine.GetTemplatesAsync 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.
Overloads
GetTemplatesAsync() |
Starts getting collection of templates available to a user. |
GetTemplatesAsync(GetTemplatesSettings) |
Starts getting collection of templates available to a user. |
GetTemplatesAsync()
Starts getting collection of templates available to a user.
public System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.InformationProtection.Protection.TemplateDescriptor>> GetTemplatesAsync ();
abstract member GetTemplatesAsync : unit -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.InformationProtection.Protection.TemplateDescriptor>>
Public Function GetTemplatesAsync () As Task(Of List(Of TemplateDescriptor))
Returns
A task that represents the asynchronous create operation. The value of the TResult
parameter contains the list of template IDs.
Applies to
GetTemplatesAsync(GetTemplatesSettings)
Starts getting collection of templates available to a user.
public System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.InformationProtection.Protection.TemplateDescriptor>> GetTemplatesAsync (Microsoft.InformationProtection.Protection.GetTemplatesSettings settings);
abstract member GetTemplatesAsync : Microsoft.InformationProtection.Protection.GetTemplatesSettings -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.InformationProtection.Protection.TemplateDescriptor>>
Public Function GetTemplatesAsync (settings As GetTemplatesSettings) As Task(Of List(Of TemplateDescriptor))
Parameters
- settings
- GetTemplatesSettings
Settings to use when obtaining templates
Returns
A task that represents the asynchronous create operation. The value of the TResult
parameter contains the list of template IDs.