コード例 #1
0
 /// <summary>
 /// Get entity from servicePrincipals by key
 /// </summary>
 /// <remarks>
 /// Represents an Azure Active Directory object. The directoryObject type is
 /// the base type for many other directory entity types.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='servicePrincipalId'>
 /// key: id of servicePrincipal
 /// </param>
 /// <param name='consistencyLevel'>
 /// Indicates the requested consistency level. Documentation URL:
 /// https://developer.microsoft.com/en-us/office/blogs/microsoft-graph-advanced-queries-for-directory-objects-are-now-generally-available/
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 public static MicrosoftGraphServicePrincipal GetServicePrincipal(this IServicePrincipalsOperations operations, string servicePrincipalId, string consistencyLevel = default(string), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>))
 {
     return(operations.GetServicePrincipalAsync(servicePrincipalId, consistencyLevel, select, expand).GetAwaiter().GetResult());
 }