|
AzureADSettingsGetGraphClient Method
|
Gets a new Graph service client.
Namespace: GSF.SecurityAssembly: GSF.Security (in GSF.Security.dll) Version: 2.4.205-beta
Syntax public GraphServiceClient GetGraphClient(
string settingsCategory = null,
bool forceRefresh = false
)
Public Function GetGraphClient (
Optional settingsCategory As String = Nothing,
Optional forceRefresh As Boolean = false
) As GraphServiceClient
public:
GraphServiceClient^ GetGraphClient(
String^ settingsCategory = nullptr,
bool forceRefresh = false
)
member GetGraphClient :
?settingsCategory : string *
?forceRefresh : bool
(* Defaults:
let _settingsCategory = defaultArg settingsCategory null
let _forceRefresh = defaultArg forceRefresh false
*)
-> GraphServiceClient
function GetGraphClient(settingsCategory, forceRefresh);
View SourceParameters
- settingsCategory String (Optional)
- Settings category to use for determine configuration location.
- forceRefresh Boolean (Optional)
- Set to true to force refresh of Azure AD token.
Return Value
GraphServiceClientNew Graph service client when Azure AD is enabled; otherwise,
null.
See Also