Поделиться через


Элементы 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.

Тип Login предоставляет доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод Login() () () () Initializes a new instance of the Login class.
Открытый метод Login(Server, String) Initializes a new instance of the Login class on the specified instance of SQL Server and with the specified name.

В начало

Методы

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

В начало

Поля

  Имя Описание
Защищенное поле m_ExtendedProperties (Наследуется из SqlSmoObject.)

В начало

Свойства

  Имя Описание
Открытое свойство AsymmetricKey Gets the asymmetric key associated with the login.
Открытое свойство Certificate Gets the certificate associated with the login.
Открытое свойство CreateDate Gets the date and time when the login account was created.
Открытое свойство Credential Gets the credential associated with the login.
Открытое свойство DateLastModified Gets the date and time when the login account was last modified.
Открытое свойство DefaultDatabase Gets or sets the default database that the login account is assigned to after logging on to the instance of SQL Server.
Открытое свойство 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.
Открытое свойство Events Gets the events associated with the login account.
Защищенное свойство ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Наследуется из SqlSmoObject.)
Открытое свойство HasAccess Gets or sets the Boolean property value that specifies whether the SQL Server login account has access to the instance of SQL Server.
Открытое свойство ID Gets the ID value that uniquely identifies the login account.
Открытое свойство IsDisabled Gets or sets the Boolean property value that specifies whether the SQL Server login account is disabled.
Открытое свойство IsLocked Gets the Boolean property value that specifies whether the login account has been locked out of the instance of SQL Server.
Открытое свойство IsPasswordExpired Gets the Boolean property value that specifies whether the password for the SQL Server login account has expired.
Открытое свойство IsSystemObject Gets or sets the Boolean property value that specifies whether the SQL Server login account is a system object.
Защищенное свойство IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Наследуется из SqlSmoObject.)
Открытое свойство Language Gets or sets the language required by the referenced login account for date formats and system messages.
Открытое свойство LanguageAlias Gets the alias name used for the language that is required by the SQL Server login account.
Открытое свойство LoginType Gets or sets the type of SQL Server login account.
Открытое свойство 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.
Открытое свойство Name Gets or sets the name of the object. (Наследуется из NamedSmoObject.)
Защищенное свойство 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. (Наследуется из SqlSmoObject.)
Открытое свойство Parent Gets the Server object that is the parent of the Login object.
Открытое свойство PasswordExpirationEnabled Gets the Boolean property value that specifies whether the password for the login account will automatically expire.
Открытое свойство PasswordPolicyEnforced Gets the Boolean property value that specifies whether password policy is enforced for this login account.
Открытое свойство Properties Gets a collection of Property objects that represent the object properties. (Наследуется из SqlSmoObject.)
Защищенное свойство ScalarResult Gets the scalar result for the referenced object. (Наследуется из SqlSmoObject.)
Открытое свойство Sid Gets or sets the security identifier (SID) for the login account.
Открытое свойство State Gets the state of the referenced object. (Наследуется из SmoObjectBase.)
Открытое свойство Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Наследуется из SqlSmoObject.)
Открытое свойство UserData Gets or sets user-defined data associated with the referenced object. (Наследуется из SmoObjectBase.)
Открытое свойство WindowsLoginAccessType Gets the type of Windows logon access.

В начало

События

  Имя Описание
Открытое событие PropertyChanged (Наследуется из SqlSmoObject.)
Открытое событие PropertyMetadataChanged (Наследуется из SqlSmoObject.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод IAlienObjectDiscover (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetParent (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetProperty (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод ISfcPropertyProviderGetPropertySet (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetUrn (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectResolve (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectSetProperty (Наследуется из SqlSmoObject.)

В начало