次の方法で共有


SymmetricKey クラス

SymmetricKey オブジェクトは、SQL Server 対称キーを表します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class SymmetricKey _
    Inherits NamedSmoObject _
    Implements IAlterable, IDroppable, IObjectPermission
'使用
Dim instance As SymmetricKey
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute]
public sealed class SymmetricKey : NamedSmoObject, 
    IAlterable, IDroppable, IObjectPermission
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute]
public ref class SymmetricKey sealed : public NamedSmoObject, 
    IAlterable, IDroppable, IObjectPermission
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<PhysicalFacetAttribute>]
type SymmetricKey =  
    class
        inherit NamedSmoObject
        interface IAlterable
        interface IDroppable
        interface IObjectPermission
    end
public final class SymmetricKey extends NamedSmoObject implements IAlterable, IDroppable, IObjectPermission

説明

SymmetricKey オブジェクトのプロパティの取得は、固定サーバー ロール public のメンバでも可能です。

SymmetricKey オブジェクトのプロパティを設定するには、対称キーの ALTER 権限を持っている必要があります。

対称キーを作成するには、親データベースの ALTER ANY SYMMETRIC KEY 権限を持っている必要があります。

対称キーを削除するには、対称キーの CONTROL 権限を持っている必要があります。

対称キーを開くには、対称キーの暗号化に使用されたパスワードを知っている必要があります。また、指定した対称キーを開くために使用される証明書または他の対称キーの CONTROL 権限も必要です。

他のユーザーに対して対称キーについての権限を許可、拒否、または取り消すには、その対称キーの CONTROL 権限を持っている必要があります。

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。