共用方式為


ClaimsSettings 類別

Contains the settings for claims based authentication using Active Directory Federation Services 2.0 (AD FS 2.0).

命名空間: Microsoft.Xrm.Sdk.Deployment
組件: Microsoft.Xrm.Sdk.Deployment (在 Microsoft.Xrm.Sdk.Deployment.dll 中)

語法

'宣告
<DebuggerStepThroughAttribute> _
<GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")> _
<DataContractAttribute(Name:="ClaimsSettings", Namespace:="https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")> _
Public Class ClaimsSettings
    Inherits ClaimsSettingsBase
[DebuggerStepThroughAttribute] 
[GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 
[DataContractAttribute(Name="ClaimsSettings", Namespace="https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")] 
public class ClaimsSettings : ClaimsSettingsBase

範例

ClaimsSettings claimsSettings = 
    (ClaimsSettings)deploymentService.Retrieve(DeploymentEntityType.ClaimsSettings, null);

//Disable Claims using SDK
claimsSettings.Enabled = false;
deploymentService.Update(claimsSettings);

繼承階層

System.Object
   Microsoft.Xrm.Sdk.Deployment.DeploymentObject
     Microsoft.Xrm.Sdk.Deployment.DeploymentConfigSettings
       Microsoft.Xrm.Sdk.Deployment.ClaimsSettingsBase
        Microsoft.Xrm.Sdk.Deployment.ClaimsSettings

執行緒安全

此類型的任何公用靜態 (Visual Basic 中的 Shared) 成員都具備執行緒安全。任何執行個體成員都不保證具備執行緒安全。

平台

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows 98、Windows 2000、Windows 2000 Server、Windows CE、Windows Server 2008、Windows 98 Second Edition、Pocket PC、智慧型手機、Windows Server 2003、Windows XP Professional、Windows Server 2008、Windows Server 2012、Windows 7、Windows 8、Windows 8.1

Change History

請參閱

參照

ClaimsSettings 成員
Microsoft.Xrm.Sdk.Deployment 命名空間

其他資源

Use Deployment Entities and Deployment Configuration Settings
Active Directory and Claims-Based Authentication

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.