Membres Login

The Login object represents a SQL Server login account that has been granted access to the instance of SQL Server through Windows Authentication or SQL Server Authentication.

Le type Login expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique Login() () () () Initializes a new instance of the Login class.
Méthode publique Login(Server, String) Initializes a new instance of the Login class on the specified instance of SQL Server and with the specified name.

Haut de la page

Méthodes

  Nom Description
Méthode publique AddCredential Adds a login credential.
Méthode protégée AddDatabaseContext (Hérité de SqlSmoObject.)
Méthode publique AddToRole Adds the login account to a SQL Server role.
Méthode publique Alter Updates any Login object property changes on the login account on the instance of SQL Server.
Méthode protégée AlterImpl (Hérité de SqlSmoObject.)
Méthode protégée AlterImplFinish (Hérité de SqlSmoObject.)
Méthode protégée AlterImplInit (Hérité de SqlSmoObject.)
Méthode protégée AlterImplWorker (Hérité de SqlSmoObject.)
Méthode protégée AppendCommaText (Hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithCommaText (Hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithOption (Hérité de ScriptNameObjectBase.)
Méthode protégée BindDefaultImpl (Hérité de SqlSmoObject.)
Méthode protégée BindRuleImpl (Hérité de SqlSmoObject.)
Méthode publique ChangePassword(String) Changes the password for the login account.
Méthode publique ChangePassword(String, String) Changes the password for the login account.
Méthode publique ChangePassword(String, Boolean, Boolean) Changes the password for the login account.
Méthode protégée CheckCollation (Hérité de SqlSmoObject.)
Méthode protégée CheckObjectDirty (Hérité de ScriptNameObjectBase.)
Méthode protégée CheckObjectState() () () () Validates the state of the referenced object. (Hérité de SqlSmoObject.)
Méthode protégée 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.)
Méthode protégée CheckObjectStateImpl (Hérité de SqlSmoObject.)
Méthode protégée CheckTextCorectness (Hérité de ScriptNameObjectBase.)
Méthode protégée CheckTextModeSupport (Hérité de ScriptNameObjectBase.)
Méthode protégée CheckVersion100 (Hérité de SqlSmoObject.)
Méthode protégée CheckVersion80 Checks the validity of the object on SQL Server 2000. (Hérité de SqlSmoObject.)
Méthode protégée CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Hérité de SqlSmoObject.)
Méthode protégée CheckVersion90 Check the validity of the object on SQL Server 2005. (Hérité de SqlSmoObject.)
Méthode protégée CheckVersionBelow90 (Hérité de SqlSmoObject.)
Méthode protégée CleanObject Cleans the referenced object. (Hérité de ScriptNameObjectBase.)
Méthode publique Create() () () () Creates a login account on the instance of SQL Server as defined by the Login object.
Méthode publique Create(SecureString) Creates a login account on the instance of Microsoft SQL Server as defined by the Login object
Méthode publique Create(String) Creates a login account on the instance of Microsoft SQL Server as defined by the Login object
Méthode publique Create(SecureString, LoginCreateOptions) Creates a login account on the instance of Microsoft SQL Server as defined by the Login object
Méthode publique Create(String, LoginCreateOptions) Creates a login account on the instance of Microsoft SQL Server as defined by the Login object
Méthode protégée CreateImpl (Hérité de SqlSmoObject.)
Méthode protégée CreateImplFinish (Hérité de SqlSmoObject.)
Méthode protégée CreateImplInit (Hérité de SqlSmoObject.)
Méthode publique Deny(ObjectPermissionSet, String) Denies the specified set of permissions for the specified grantee on the login account.
Méthode publique Deny(ObjectPermissionSet, array<String> [] () [] []) Denies the specified set of permissions for the specified grantees on the logon.
Méthode publique Deny(ObjectPermissionSet, String, Boolean) Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the logon.
Méthode publique Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean) Denies the specified set of permissions for the specified grantees and other users that the grantee granted the specified set of permissions on the logon.
Méthode publique Disable Disables the login account.
Méthode publique Discover (Hérité de SqlSmoObject.)
Méthode publique Drop Removes the login account from the instance of SQL Server.
Méthode publique DropCredential Drops a login credential.
Méthode protégée DropImpl (Hérité de SqlSmoObject.)
Méthode protégée DropImplWorker (Hérité de SqlSmoObject.)
Méthode publique Enable Enables the login account.
Méthode publique EnumAgentProxyAccounts Enumerates a list of agent proxy accounts in which the login account is participating.
Méthode publique EnumCredentials Returns a String Collection of credentials associated with a login.
Méthode publique EnumDatabaseMappings Enumerates a list of login account mappings to databases and database users.
Méthode publique EnumObjectPermissions() () () () Enumerates a list of object permissions for the login account.
Méthode publique EnumObjectPermissions(String) Enumerates a list of object permissions for a specified grantee on the login account.
Méthode publique EnumObjectPermissions(ObjectPermissionSet) Enumerates a list of object permissions for a specified permission on the login account.
Méthode publique EnumObjectPermissions(String, ObjectPermissionSet) Enumerates a list of object permissions for a specified grantee and a specified permission on the login account.
Méthode protégée EnumScriptImpl (Hérité de SqlSmoObject.)
Méthode protégée EnumScriptImplWorker (Hérité de SqlSmoObject.)
Méthode publique Equals (Hérité de Object.)
Méthode protégée Finalize (Hérité de Object.)
Méthode protégée ForceTextModeOnTextBody Enforces text mode on the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée FormatSqlVariant (Hérité de SqlSmoObject.)
Méthode protégée GenerateDataSpaceFileStreamScript (Hérité de SqlSmoObject.)
Méthode protégée GenerateDataSpaceScript (Hérité de SqlSmoObject.)
Méthode protégée GetBindDefaultScript (Hérité de SqlSmoObject.)
Méthode protégée GetBindRuleScript (Hérité de SqlSmoObject.)
Méthode protégée GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Hérité de SqlSmoObject.)
Méthode protégée GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Hérité de SqlSmoObject.)
Méthode protégée GetBraketNameForText (Hérité de ScriptNameObjectBase.)
Méthode publique GetDatabaseUser Gets the name of the user that the login account is mapped to in a specified database.
Méthode protégée GetDateTimeParameter (Hérité de SqlSmoObject.)
Méthode protégée GetDateTimeParameterAsInt (Hérité de SqlSmoObject.)
Méthode protégée GetDBName Gets the database name that is associated with the object. (Hérité de SqlSmoObject.)
Méthode protégée GetEnumParameter (Hérité de SqlSmoObject.)
Méthode protégée GetFragOptionString (Hérité de SqlSmoObject.)
Méthode protégée GetGuidParameter (Hérité de SqlSmoObject.)
Méthode publique GetHashCode (Hérité de Object.)
Méthode protégée GetIsTextDirty Determines whether the text value is consistent with stored value. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Hérité de SqlSmoObject.)
Méthode protégée GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Hérité de SqlSmoObject.)
Méthode protégée GetPropValue (Hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptional (Hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptionalAllowNull (Hérité de SqlSmoObject.)
Méthode protégée GetRealValue (Hérité de SqlSmoObject.)
Méthode protégée GetScriptIncludeExists (Hérité de ScriptNameObjectBase.)
Méthode protégée GetScriptingOptionsForCreate (Hérité de SqlSmoObject.)
Méthode protégée GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.)
Méthode protégée GetServerObject (Hérité de SqlSmoObject.)
Méthode protégée GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.)
Méthode protégée GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Hérité de SqlSmoObject.)
Méthode protégée GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Hérité de SqlSmoObject.)
Méthode protégée GetTextBody() () () () Returns the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextBody(Boolean) Returns the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextHeader Returns the text header. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextMode Determines whether the script name is using text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextProperty(String) (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextProperty(String, ScriptingOptions) (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTimeSpanParameterAsInt (Hérité de SqlSmoObject.)
Méthode publique GetType (Hérité de Object.)
Méthode protégée GetUrnRecursive(StringBuilder) (Hérité de SqlSmoObject.)
Méthode protégée GetUrnRecursive(StringBuilder, UrnIdOption) (Hérité de SqlSmoObject.)
Méthode publique Grant(ObjectPermissionSet, String) Grants the specified set of permissions to the specified grantee on the login account.
Méthode publique Grant(ObjectPermissionSet, array<String> [] () [] []) Grants the specified set of permissions to the specified grantees on the login account.
Méthode publique Grant(ObjectPermissionSet, String, Boolean) Grants access to the specified permission to the grantee and the ability to grant access to other users on the login account.
Méthode publique Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean) Grants access to the specified permission to the grantees and the ability to grant access to other users on the login account.
Méthode publique Grant(ObjectPermissionSet, String, Boolean, String) Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the login account under an assumed role.
Méthode publique Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean, String) Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the logon under an assumed role.
Méthode protégée ImplInitialize (Hérité de SqlSmoObject.)
Méthode publique Initialize() () () () Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.)
Méthode publique Initialize(Boolean) Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.)
Méthode publique IsMember Returns a Boolean value that specifies whether the login account is a member of a specified role.
Méthode protégée IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Hérité de ScriptNameObjectBase.)
Méthode protégée IsObjectInitialized Verifies whether the object has been initialized. (Hérité de SqlSmoObject.)
Méthode protégée IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Hérité de SqlSmoObject.)
Méthode protégée IsVersion80SP3 (Hérité de SqlSmoObject.)
Méthode publique ListMembers Returns a list of the roles of which the login account is a member.
Méthode protégée MarkDropped (Hérité de SqlSmoObject.)
Méthode protégée MarkForDropImpl (Hérité de SqlSmoObject.)
Méthode protégée MemberwiseClone (Hérité de Object.)
Méthode protégée PostAlter (Hérité de SqlSmoObject.)
Méthode protégée PostCreate (Hérité de SqlSmoObject.)
Méthode protégée PostDrop (Hérité de SqlSmoObject.)
Méthode publique Refresh Refreshes the login credentials. (Se substitue à ScriptNameObjectBase. . :: . .Refresh() () () ().)
Méthode publique Rename Renames the login account.
Méthode protégée RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode publique Revoke(ObjectPermissionSet, String) Revokes a previously granted set of permissions from a grantee on the login account.
Méthode publique Revoke(ObjectPermissionSet, array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the login account.
Méthode publique Revoke(ObjectPermissionSet, String, Boolean, Boolean) Revokes previously granted permissions from a grantee on the login account and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role.
Méthode publique Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean) Revokes previously granted permissions from grantees on the login account and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Méthode publique Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) Revokes previously granted permissions from a grantee on the login account and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role.
Méthode publique Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean, String) Revokes previously granted permissions from grantees on the login account and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Méthode publique Script() () () () Generates a Transact-SQL script that can be used to re-create the login account.
Méthode publique Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the login account as specified by the script options.
Méthode protégée ScriptAlter (Hérité de SqlSmoObject.)
Méthode protégée ScriptAnsiQI (Hérité de ScriptNameObjectBase.)
Méthode protégée ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée ScriptCreate (Hérité de SqlSmoObject.)
Méthode protégée ScriptDdl (Hérité de SqlSmoObject.)
Méthode protégée ScriptDrop (Hérité de SqlSmoObject.)
Méthode protégée ScriptImpl() () () () (Hérité de SqlSmoObject.)
Méthode protégée ScriptImpl(ScriptingOptions) (Hérité de SqlSmoObject.)
Méthode protégée ScriptImplWorker (Hérité de SqlSmoObject.)
Méthode protégée ScriptInformativeHeaders (Hérité de ScriptNameObjectBase.)
Méthode protégée ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée SetCollectionTextMode Sets the collection text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée SetParentImpl (Hérité de SqlSmoObject.)
Méthode protégée SetTextBody Specifies the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée SetTextHeader Specifies the text header. (Hérité de ScriptNameObjectBase.)
Méthode protégée SetTextMode Specifies the text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée SwitchTextMode Switches the text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée ThrowIfTextIsDirtyForAlter (Hérité de ScriptNameObjectBase.)
Méthode publique ToString Returns a String that represents the referenced object. (Hérité de SqlSmoObject.)
Méthode protégée TouchImpl (Hérité de SqlSmoObject.)
Méthode protégée UnbindDefaultImpl (Hérité de SqlSmoObject.)
Méthode protégée UnbindRuleImpl (Hérité de SqlSmoObject.)
Méthode publique Validate (Hérité de SmoObjectBase.)

Haut de la page

Champs

  Nom Description
Champ protégé m_ExtendedProperties (Hérité de SqlSmoObject.)

Haut de la page

Propriétés

  Nom Description
Propriété publique AsymmetricKey Gets the asymmetric key associated with the login.
Propriété publique Certificate Gets the certificate associated with the login.
Propriété publique CreateDate Gets the date and time when the login account was created.
Propriété publique Credential Gets the credential associated with the login.
Propriété publique DateLastModified Gets the date and time when the login account was last modified.
Propriété publique DefaultDatabase Gets or sets the default database that the login account is assigned to after logging on to the instance of SQL Server.
Propriété publique DenyWindowsLogin Gets or sets the Boolean property value that specifies whether the login account has been granted or denied the ability to log on to the instance of SQL Server.
Propriété publique Events Gets the events associated with the login account.
Propriété protégée 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.)
Propriété publique HasAccess Gets or sets the Boolean property value that specifies whether the SQL Server login account has access to the instance of SQL Server.
Propriété publique ID Gets the ID value that uniquely identifies the login account.
Propriété publique IsDisabled Gets or sets the Boolean property value that specifies whether the SQL Server login account is disabled.
Propriété publique IsLocked Gets the Boolean property value that specifies whether the login account has been locked out of the instance of SQL Server.
Propriété publique IsPasswordExpired Gets the Boolean property value that specifies whether the password for the SQL Server login account has expired.
Propriété publique IsSystemObject Gets or sets the Boolean property value that specifies whether the SQL Server login account is a system object.
Propriété protégée 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.)
Propriété publique Language Gets or sets the language required by the referenced login account for date formats and system messages.
Propriété publique LanguageAlias Gets the alias name used for the language that is required by the SQL Server login account.
Propriété publique LoginType Gets or sets the type of SQL Server login account.
Propriété publique MustChangePassword Gets the Boolean property value that specifies whether the login account password must be changed when the user next logs on to the instance of SQL Server.
Propriété publique Name Gets or sets the name of the object. (Hérité de NamedSmoObject.)
Propriété protégée 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.)
Propriété publique Parent Gets the Server object that is the parent of the Login object.
Propriété publique PasswordExpirationEnabled Gets the Boolean property value that specifies whether the password for the login account will automatically expire.
Propriété publique PasswordPolicyEnforced Gets the Boolean property value that specifies whether password policy is enforced for this login account.
Propriété publique Properties Gets a collection of Property objects that represent the object properties. (Hérité de SqlSmoObject.)
Propriété protégée ScalarResult Gets the scalar result for the referenced object. (Hérité de SqlSmoObject.)
Propriété publique Sid Gets or sets the security identifier (SID) for the login account.
Propriété publique State Gets the state of the referenced object. (Hérité de SmoObjectBase.)
Propriété publique Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Hérité de SqlSmoObject.)
Propriété publique UserData Gets or sets user-defined data associated with the referenced object. (Hérité de SmoObjectBase.)
Propriété publique WindowsLoginAccessType Gets the type of Windows logon access.

Haut de la page

Événements

  Nom Description
Événement public PropertyChanged (Hérité de SqlSmoObject.)
Événement public PropertyMetadataChanged (Hérité de SqlSmoObject.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IAlienObjectDiscover (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetParent (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetProperty (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée ISfcPropertyProviderGetPropertySet (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetUrn (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectResolve (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectSetProperty (Hérité de SqlSmoObject.)

Haut de la page