AppPrincipalCredential.CreateFromSymmetricKey 方法
建立AppPrincipalCredential換行對稱金鑰的執行個體。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public Shared Function CreateFromSymmetricKey ( _
context As ClientRuntimeContext, _
symmetricKey As String, _
notBefore As DateTime, _
notAfter As DateTime _
) As AppPrincipalCredential
'用途
Dim context As ClientRuntimeContext
Dim symmetricKey As String
Dim notBefore As DateTime
Dim notAfter As DateTime
Dim returnValue As AppPrincipalCredential
returnValue = AppPrincipalCredential.CreateFromSymmetricKey(context, _
symmetricKey, notBefore, notAfter)
public static AppPrincipalCredential CreateFromSymmetricKey(
ClientRuntimeContext context,
string symmetricKey,
DateTime notBefore,
DateTime notAfter
)
參數
context
類型:Microsoft.SharePoint.Client.ClientRuntimeContext執行階段內容。
symmetricKey
類型:System.String對稱的金鑰。
notBefore
類型:System.DateTime如果是這個日期和時間之前,不會建立執行個體。
notAfter
類型:System.DateTime如果是這個日期和時間後,不會建立執行個體。
傳回值
類型:Microsoft.SharePoint.Client.AppPrincipalCredential
新的執行個體AppPrincipalCredential。