Membres MasterKey
The MasterKey object represents a SQL Server database master key.
Le type MasterKey expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
MasterKey() () () () | Initializes a new instance of the MasterKey class. | |
MasterKey(Database) | Initializes a new instance of the MasterKey class on the specified database. |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
AddDatabaseContext | (Hérité de SqlSmoObject.) | |
AddPasswordEncryption | Adds password encryption to the master key. | |
AddServiceKeyEncryption | Adds service key encryption to the master key. | |
AlterImpl | (Hérité de SqlSmoObject.) | |
AlterImplFinish | (Hérité de SqlSmoObject.) | |
AlterImplInit | (Hérité de SqlSmoObject.) | |
AlterImplWorker | (Hérité de SqlSmoObject.) | |
BindDefaultImpl | (Hérité de SqlSmoObject.) | |
BindRuleImpl | (Hérité de SqlSmoObject.) | |
CheckCollation | (Hérité de SqlSmoObject.) | |
CheckObjectState() () () () | Validates the state of the referenced object. (Hérité de SqlSmoObject.) | |
CheckObjectState(Boolean) | Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Hérité de SqlSmoObject.) | |
CheckObjectStateImpl | (Hérité de SqlSmoObject.) | |
CheckVersion100 | (Hérité de SqlSmoObject.) | |
CheckVersion80 | Checks the validity of the object on SQL Server 2000. (Hérité de SqlSmoObject.) | |
CheckVersion80SP3 | Checks the validity of the object on SQL Server 2000 SP3. (Hérité de SqlSmoObject.) | |
CheckVersion90 | Check the validity of the object on SQL Server 2005. (Hérité de SqlSmoObject.) | |
CheckVersionBelow90 | (Hérité de SqlSmoObject.) | |
CleanObject | (Hérité de SqlSmoObject.) | |
Close | Closes the master key. | |
Create(String) | Creates a master key that has the specified password. | |
Create(String, String, String) | Creates a master key from the specified file and that has the specified encryption and decryption passwords. | |
CreateImpl | (Hérité de SqlSmoObject.) | |
CreateImplFinish | (Hérité de SqlSmoObject.) | |
CreateImplInit | (Hérité de SqlSmoObject.) | |
Discover | (Hérité de SqlSmoObject.) | |
Drop | Removes the master key from the database. | |
DropImpl | (Hérité de SqlSmoObject.) | |
DropImplWorker | (Hérité de SqlSmoObject.) | |
DropPasswordEncryption | Removes the password encryption from the master key by using the associated password. | |
DropServiceKeyEncryption | Drops service key encryption from the master key. | |
EnumKeyEncryptions | Enumerates a list of the current set of key encryptions for the database master key. | |
EnumScriptImpl | (Hérité de SqlSmoObject.) | |
EnumScriptImplWorker | (Hérité de SqlSmoObject.) | |
Equals | (Hérité de Object.) | |
Export | Saves the database master key to the specified system path location by using the specified password. | |
Finalize | (Hérité de Object.) | |
FormatSqlVariant | (Hérité de SqlSmoObject.) | |
GenerateDataSpaceFileStreamScript | (Hérité de SqlSmoObject.) | |
GenerateDataSpaceScript | (Hérité de SqlSmoObject.) | |
GetBindDefaultScript | (Hérité de SqlSmoObject.) | |
GetBindRuleScript | (Hérité de SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Hérité de SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Hérité de SqlSmoObject.) | |
GetDateTimeParameter | (Hérité de SqlSmoObject.) | |
GetDateTimeParameterAsInt | (Hérité de SqlSmoObject.) | |
GetDBName | Gets the database name that is associated with the object. (Hérité de SqlSmoObject.) | |
GetEnumParameter | (Hérité de SqlSmoObject.) | |
GetFragOptionString | (Hérité de SqlSmoObject.) | |
GetGuidParameter | (Hérité de SqlSmoObject.) | |
GetHashCode | (Hérité de Object.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Hérité de SqlSmoObject.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Hérité de SqlSmoObject.) | |
GetPropValue | (Hérité de SqlSmoObject.) | |
GetPropValueOptional | (Hérité de SqlSmoObject.) | |
GetPropValueOptionalAllowNull | (Hérité de SqlSmoObject.) | |
GetRealValue | (Hérité de SqlSmoObject.) | |
GetScriptingOptionsForCreate | (Hérité de SqlSmoObject.) | |
GetServerName | Gets the name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.) | |
GetServerObject | (Hérité de SqlSmoObject.) | |
GetSqlServerVersionName | Gets the version name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Hérité de SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Hérité de SqlSmoObject.) | |
GetTimeSpanParameterAsInt | (Hérité de SqlSmoObject.) | |
GetType | (Hérité de Object.) | |
GetUrnRecursive(StringBuilder) | (Hérité de SqlSmoObject.) | |
GetUrnRecursive(StringBuilder, UrnIdOption) | (Hérité de SqlSmoObject.) | |
ImplInitialize | (Hérité de SqlSmoObject.) | |
Import(String, String, String) | Loads the database master key from the file that is located at the specified system path by using the specified passwords to decrypt and encrypt the master key. | |
Import(String, String, String, Boolean) | Loads the database master key from the file that is located at the specified system path by using the specified passwords to decrypt and encrypt the master key, and with the option to force regeneration. | |
Initialize() () () () | Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.) | |
Initialize(Boolean) | Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.) | |
IsObjectDirty | Verifies whether the object properties have been modified and the changes have not yet been persisted on the instance of SQL Server. (Hérité de SqlSmoObject.) | |
IsObjectInitialized | Verifies whether the object has been initialized. (Hérité de SqlSmoObject.) | |
IsObjectInSpace | Verifies whether the object is isolated or connected to the instance of SQL Server. (Hérité de SqlSmoObject.) | |
IsVersion80SP3 | (Hérité de SqlSmoObject.) | |
MarkDropped | (Hérité de SqlSmoObject.) | |
MarkForDropImpl | (Hérité de SqlSmoObject.) | |
MemberwiseClone | (Hérité de Object.) | |
Open | Opens the database master key by using the specified password. | |
PostAlter | (Hérité de SqlSmoObject.) | |
PostCreate | (Hérité de SqlSmoObject.) | |
PostDrop | (Hérité de SqlSmoObject.) | |
Refresh | Refreshes the object and retrieves properties when the object is next accessed. (Hérité de SqlSmoObject.) | |
Regenerate(String) | Regenerates the database master key by using the specified new password. | |
Regenerate(String, Boolean) | Regenerates the database master key by using the specified new password, and with the option to force the regeneration, thus removing all items that cannot be successfully decrypted. | |
ScriptAlter | (Hérité de SqlSmoObject.) | |
ScriptCreate | (Hérité de SqlSmoObject.) | |
ScriptDdl | (Hérité de SqlSmoObject.) | |
ScriptDrop | (Hérité de SqlSmoObject.) | |
ScriptImpl() () () () | (Hérité de SqlSmoObject.) | |
ScriptImpl(ScriptingOptions) | (Hérité de SqlSmoObject.) | |
ScriptImplWorker | (Hérité de SqlSmoObject.) | |
SetParentImpl | (Hérité de SqlSmoObject.) | |
ToString | Returns a String that represents the referenced object. (Hérité de SqlSmoObject.) | |
TouchImpl | (Hérité de SqlSmoObject.) | |
UnbindDefaultImpl | (Hérité de SqlSmoObject.) | |
UnbindRuleImpl | (Hérité de SqlSmoObject.) | |
Validate | (Hérité de SmoObjectBase.) |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
CreateDate | Gets the date and time when the master key was created. | |
DateLastModified | Gets the date and time when the master key was last modified. | |
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Hérité de SqlSmoObject.) | |
IsEncryptedByServer | Gets the Boolean property value that specifies whether the database master key is encrypted by using the service master key or by using a password. | |
IsOpen | Gets the Boolean property value that specifies whether the database master key is open. | |
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Hérité de SqlSmoObject.) | |
ObjectInSpace | Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Hérité de SqlSmoObject.) | |
Parent | Gets the Database object that is the parent of the MasterKey object. | |
Properties | Gets a collection of Property objects that represent the object properties. (Hérité de SqlSmoObject.) | |
ScalarResult | Gets the scalar result for the referenced object. (Hérité de SqlSmoObject.) | |
State | Gets the state of the referenced object. (Hérité de SmoObjectBase.) | |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Hérité de SqlSmoObject.) | |
UserData | Gets or sets user-defined data associated with the referenced object. (Hérité de SmoObjectBase.) |
Haut de la page
Événements
Nom | Description | |
---|---|---|
PropertyChanged | (Hérité de SqlSmoObject.) | |
PropertyMetadataChanged | (Hérité de SqlSmoObject.) |
Haut de la page
Implémentations d'interfaces explicites
Nom | Description | |
---|---|---|
IAlienObjectDiscover | (Hérité de SqlSmoObject.) | |
IAlienObjectGetParent | (Hérité de SqlSmoObject.) | |
IAlienObjectGetProperty | (Hérité de SqlSmoObject.) | |
ISfcPropertyProviderGetPropertySet | (Hérité de SqlSmoObject.) | |
IAlienObjectGetUrn | (Hérité de SqlSmoObject.) | |
IAlienObjectResolve | (Hérité de SqlSmoObject.) | |
IAlienObjectSetProperty | (Hérité de SqlSmoObject.) |
Haut de la page