Freigeben über


Login-Klasse

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.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class Login _
    Inherits ScriptNameObjectBase _
    Implements ISfcSupportsDesignMode, IObjectPermission, ICreatable, IAlterable,  _
    IDroppable, IRenamable, IScriptable, ILoginOptions, IDmfFacet
'Usage
Dim instance As Login
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute]
public sealed class Login : ScriptNameObjectBase, 
    ISfcSupportsDesignMode, IObjectPermission, ICreatable, IAlterable, IDroppable, 
    IRenamable, IScriptable, ILoginOptions, IDmfFacet
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute]
public ref class Login sealed : public ScriptNameObjectBase, 
    ISfcSupportsDesignMode, IObjectPermission, ICreatable, IAlterable, IDroppable, 
    IRenamable, IScriptable, ILoginOptions, IDmfFacet
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<PhysicalFacetAttribute>]
type Login =  
    class
        inherit ScriptNameObjectBase
        interface ISfcSupportsDesignMode
        interface IObjectPermission
        interface ICreatable
        interface IAlterable
        interface IDroppable
        interface IRenamable
        interface IScriptable
        interface ILoginOptions
        interface IDmfFacet
    end
public final class Login extends ScriptNameObjectBase implements ISfcSupportsDesignMode, IObjectPermission, ICreatable, IAlterable, IDroppable, IRenamable, IScriptable, ILoginOptions, IDmfFacet

Der Login-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode Login() () () () Initializes a new instance of the Login class.
Öffentliche Methode Login(Server, String) Initializes a new instance of the Login class on the specified instance of SQL Server and with the specified name.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft AsymmetricKey Gets the asymmetric key associated with the login.
Öffentliche Eigenschaft Certificate Gets the certificate associated with the login.
Öffentliche Eigenschaft CreateDate Gets the date and time when the login account was created.
Öffentliche Eigenschaft Credential Gets the credential associated with the login.
Öffentliche Eigenschaft DateLastModified Gets the date and time when the login account was last modified.
Öffentliche Eigenschaft DefaultDatabase Gets or sets the default database that the login account is assigned to after logging on to the instance of SQL Server.
Öffentliche Eigenschaft 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.
Öffentliche Eigenschaft Events Gets the events associated with the login account.
Geschützte Eigenschaft ExecuteForScalar Ruft den Boolean-Eigenschaftswert ab, der angibt, ob das Objekt auf die ExecuteForScalar-Option festgelegt ist, oder legt ihn fest. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft HasAccess Gets or sets the Boolean property value that specifies whether the SQL Server login account has access to the instance of SQL Server.
Öffentliche Eigenschaft ID Gets the ID value that uniquely identifies the login account.
Öffentliche Eigenschaft IsDisabled Gets or sets the Boolean property value that specifies whether the SQL Server login account is disabled.
Öffentliche Eigenschaft IsLocked Gets the Boolean property value that specifies whether the login account has been locked out of the instance of SQL Server.
Öffentliche Eigenschaft IsPasswordExpired Gets the Boolean property value that specifies whether the password for the SQL Server login account has expired.
Öffentliche Eigenschaft IsSystemObject Gets or sets the Boolean property value that specifies whether the SQL Server login account is a system object.
Geschützte Eigenschaft IsTouched Ruft den Boolean-Eigenschaftswert ab, der angibt, ob die Objekteigenschaften aktualisiert, aber noch nicht permanent auf dem Server gespeichert wurden. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft Language Gets or sets the language required by the referenced login account for date formats and system messages.
Öffentliche Eigenschaft LanguageAlias Gets the alias name used for the language that is required by the SQL Server login account.
Öffentliche Eigenschaft LoginType Gets or sets the type of SQL Server login account.
Öffentliche Eigenschaft 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.
Öffentliche Eigenschaft Name Gets or sets the name of the login. (Überschreibt NamedSmoObject. . :: . .Name.)
Geschützte Eigenschaft ObjectInSpace Ruft den Boolean-Eigenschaftswert ab, der angibt, ob das Objekt isoliert vorhanden bzw. direkt oder indirekt mit der SQL Server-Instanz verbunden ist. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft Parent Gets the Server object that is the parent of the Login object.
Öffentliche Eigenschaft PasswordExpirationEnabled Gets the Boolean property value that specifies whether the password for the login account will automatically expire.
Öffentliche Eigenschaft PasswordPolicyEnforced Gets the Boolean property value that specifies whether password policy is enforced for this login account.
Öffentliche Eigenschaft Properties Ruft eine Auflistung von Property-Objekten ab, die die Objekteigenschaften darstellen. (Geerbt von SqlSmoObject.)
Geschützte Eigenschaft ScalarResult Ruft das skalare Ergebnis für das Objekt ab, auf das verwiesen wird. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft Sid Gets or sets the security identifier (SID) for the login account.
Öffentliche Eigenschaft State Gets the state of the referenced object. (Geerbt von SmoObjectBase.)
Öffentliche Eigenschaft Urn Ruft den Wert der URN (Uniform Resource Name)-Adresse ab, durch den das Objekt eindeutig identifiziert wird. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft UserData Gets or sets user-defined data associated with the referenced object. (Geerbt von SmoObjectBase.)
Öffentliche Eigenschaft WindowsLoginAccessType Gets the type of Windows logon access.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode AddCredential Adds a login credential.
Geschützte Methode AddDatabaseContext(StringCollection) Fügt der Auflistung der vom queries-Parameter identifizierten Abfragen den Datenbankkontext hinzu. (Geerbt von SqlSmoObject.)
Geschützte Methode AddDatabaseContext(StringCollection, ScriptingOptions) Fügt der Auflistung der vom queries-Parameter identifizierten Abfragen den Datenbankkontext gemäß den angegebenen Skriptoptionen hinzu. (Geerbt von SqlSmoObject.)
Öffentliche Methode AddToRole Adds the login account to a SQL Server role.
Öffentliche Methode Alter Updates any Login object property changes on the login account on the instance of SQL Server.
Geschützte Methode AlterImpl Aktiviert das Änderungsereignis des Objekts. (Geerbt von SqlSmoObject.)
Geschützte Methode AlterImplFinish Die Methode, die nach Beendigung des Änderungsereignisses des Objekts aufgerufen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode AlterImplInit Die Methode, die bei der Initialisierung des Änderungsereignisses des Objekts aufgerufen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode AlterImplWorker Ruft die ALTER-Methoden auf. (Geerbt von SqlSmoObject.)
Geschützte Methode AppendCommaText Appends text, optionally separated by a comma. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode AppendWithCommaText Appends text, optionally separated by a comma. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode AppendWithOption Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode AutoGenerateName Generates a name based on the object Guid. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode BindDefaultImpl Bindet die von den Parametern identifizierten Standardelemente. (Geerbt von SqlSmoObject.)
Geschützte Methode BindRuleImpl Bindet das Regelschema an die Regel und die Spalten, die von den Parametern identifiziert werden. (Geerbt von SqlSmoObject.)
Öffentliche Methode ChangePassword(String) Changes the password for the login account.
Öffentliche Methode ChangePassword(String, String) Changes the password for the login account.
Öffentliche Methode ChangePassword(String, Boolean, Boolean) Changes the password for the login account.
Geschützte Methode CheckCollation Überprüft die Reihenfolge der Skriptoptionen anhand der vom collationName-Parameter identifizierten Sortierungsmethode. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckObjectDirty Checks whether object has been modified and not persisted. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode CheckObjectState() () () () Überprüft den Status des Objekts, auf das verwiesen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckObjectState(Boolean) Überprüft den Status des Objekts, auf das verwiesen wird. Optional kann angegeben werden, dass eine Ausnahme ausgelöst wird, wenn das Objekt noch nicht erstellt wurde. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckObjectStateImpl Überprüft den Zustand von SqlSmoObject. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckTextCorectness Checks text for correctness against the parameters. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode CheckTextModeSupport Checks mode of support. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode CheckVersion100 Überprüft, ob die SQL Server-Version SQL Server 2008 ist. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersion80 Überprüft die Gültigkeit des Objekts für SQL Server 2000. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersion80SP3 Überprüft die Gültigkeit des Objekts für SQL Server 2000 SP3. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersion90 Überprüft die Gültigkeit des Objekts für SQL Server 2005. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersionBelow90 Überprüft, ob die SQL Server-Version älter als SQL Server 2005 ist. (Geerbt von SqlSmoObject.)
Geschützte Methode CleanObject Cleans the referenced object. (Geerbt von ScriptNameObjectBase.)
Öffentliche Methode Create() () () () Creates a login account on the instance of SQL Server as defined by the Login object.
Öffentliche Methode Create(SecureString) Creates a login account on the instance of SQL Server as defined by the Login object.
Öffentliche Methode Create(String) Creates a login account on the instance of SQL Server as defined by the Login object.
Öffentliche Methode Create(SecureString, LoginCreateOptions) Creates a login account on the instance of SQL Server as defined by the Login object.
Öffentliche Methode Create(String, LoginCreateOptions) Creates a login account on the instance of SQL Server as defined by the Login object.
Geschützte Methode CreateImpl Erstellt ein Objekt mit Skriptoptionen. (Geerbt von SqlSmoObject.)
Geschützte Methode CreateImplFinish Die Methode, die nach Beendigung des CREATE-Ereignisses aufgerufen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode CreateImplInit Die Methode, die bei Initialisierung des CREATE-Ereignisses aufgerufen wird. (Geerbt von SqlSmoObject.)
Öffentliche Methode Deny(ObjectPermissionSet, String) Denies the specified set of permissions for the specified grantee on the login account.
Öffentliche Methode Deny(ObjectPermissionSet, array<String> [] () [] []) Denies the specified set of permissions for the specified grantees on the logon.
Öffentliche Methode 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.
Öffentliche Methode 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.
Öffentliche Methode Disable Disables the login account.
Öffentliche Methode Discover Ermittelt eine Liste vom Typ Object. (Geerbt von SqlSmoObject.)
Öffentliche Methode Drop Removes the login account from the instance of SQL Server.
Öffentliche Methode DropCredential Drops a login credential.
Geschützte Methode DropImpl Löscht SqlSmoObject. (Geerbt von SqlSmoObject.)
Geschützte Methode DropImplWorker Ruft die DROP-Methoden auf. (Geerbt von SqlSmoObject.)
Öffentliche Methode Enable Enables the login account.
Öffentliche Methode EnumAgentProxyAccounts Enumerates a list of agent proxy accounts in which the login account is participating.
Öffentliche Methode EnumCredentials Returns a string collection of credentials associated with a login.
Öffentliche Methode EnumDatabaseMappings Enumerates a list of login account mappings to databases and database users.
Öffentliche Methode EnumObjectPermissions() () () () Enumerates a list of object permissions for the login account.
Öffentliche Methode EnumObjectPermissions(String) Enumerates a list of object permissions for a specified grantee on the login account.
Öffentliche Methode EnumObjectPermissions(ObjectPermissionSet) Enumerates a list of object permissions for a specified permission on the login account.
Öffentliche Methode EnumObjectPermissions(String, ObjectPermissionSet) Enumerates a list of object permissions for a specified grantee and a specified permission on the login account.
Geschützte Methode EnumScriptImpl Listet die vom so-Parameter angegebenen Skripts auf. (Geerbt von SqlSmoObject.)
Geschützte Methode EnumScriptImplWorker Ruft die Methoden auf, die die vom so-Parameter angegebenen Skripts auflisten. (Geerbt von SqlSmoObject.)
Geschützte Methode EnumScriptImplWorkerSOChanged Gibt eine IEnumerable-Zeichenfolge zurück, die die Skriptoptionen für ein Objekt beschreibt. (Geerbt von SqlSmoObject.)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode ExecuteNonQuery (Geerbt von SqlSmoObject.)
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode ForceTextModeOnTextBody Enforces text mode on the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode FormatSqlVariant Formatiert ein Objekt als SqlVariant-Typ. (Geerbt von SqlSmoObject.)
Geschützte Methode GenerateDataSpaceFileStreamScript Generiert ein Skript zum Erstellen der Datendatei. (Geerbt von SqlSmoObject.)
Geschützte Methode GenerateDataSpaceScript Generiert ein Skript zum Zuordnen von Speicherplatz in der Datendatei. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBindDefaultScript Ruft das Skript ab, durch das die vom defSchema-Parameter und defName-Parameter angegebenen Standardwerte gebunden werden. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBindRuleScript Ruft das Skript ab, das die Bindungsregeln angibt. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Weist einen booleschen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Weist eine boolesche Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBraketNameForText Gets the bracket name. (Geerbt von ScriptNameObjectBase.)
Öffentliche Methode GetDatabaseUser Gets the name of the user that the login account is mapped to in a specified database.
Geschützte Methode GetDateTimeParameter Weist die datetime-Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetDateTimeParameterAsInt Weist die datetime-Eigenschaft von SqlSmoObject als ganzzahligen Wert zu, wenn die datetime-Eigenschaft nicht NULL ist. (Geerbt von SqlSmoObject.)
Geschützte Methode GetDBName Ruft den Datenbanknamen ab, der dem Objekt zugeordnet ist. (Geerbt von SqlSmoObject.)
Geschützte Methode GetEnumParameter Weist die Enumerationseigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetFragOptionString Ruft ein FragmentationOption-Objekt als Zeichenfolgenwert ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetGuidParameter Weist eine Guid-Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Geschützte Methode GetIsSystemNamed Gets a Boolean value that specifies whether the system is named. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetIsTextDirty Determines whether the text value is consistent with stored value. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Weist einen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Weist einen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValue Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValueOptional Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValueOptionalAllowNull Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetRealValue Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetScriptIncludeExists Gets the script including the test for existence of type being scripted. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetScriptingOptionsForCreate Ruft ScriptingOptions für das SqlSmoObject-Objekt ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetServerName Ruft den Namen der SQL Server-Instanz ab, der das Objekt zugeordnet ist. (Geerbt von SqlSmoObject.)
Geschützte Methode GetServerObject Ruft den Server des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetSqlServerVersionName Ruft den Versionsnamen der SQL Server-Instanz ab, der das Objekt zugeordnet ist. (Geerbt von SqlSmoObject.)
Geschützte Methode GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Weist einen Zeichenfolgenparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Weist einen Zeichenfolgenparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetTextBody() () () () Returns the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextBody(Boolean) Returns the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) Gets the text of script object. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextHeader Returns the text header. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextMode Determines whether the script name is using text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextProperty(String) Gets the property as text. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextProperty(String, ScriptingOptions) Gets the property as text. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTimeSpanParameterAsInt Weist einen Zeitraumparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode GetUrnRecursive(StringBuilder) Weist ein Urn-Objekt des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetUrnRecursive(StringBuilder, UrnIdOption) Weist ein Urn-Objekt des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Öffentliche Methode Grant(ObjectPermissionSet, String) Grants the specified set of permissions to the specified grantee on the login account.
Öffentliche Methode Grant(ObjectPermissionSet, array<String> [] () [] []) Grants the specified set of permissions to the specified grantees on the login account.
Öffentliche Methode 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.
Öffentliche Methode 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.
Öffentliche Methode 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.
Öffentliche Methode 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.
Geschützte Methode ImplInitialize Initialisiert die Felder des SqlSmoObject-Objekts. (Geerbt von SqlSmoObject.)
Öffentliche Methode Initialize() () () () Initialisiert das Objekt und erzwingt das Laden der Eigenschaften. (Geerbt von SqlSmoObject.)
Öffentliche Methode Initialize(Boolean) Initialisiert das Objekt und erzwingt das Laden der Eigenschaften. (Geerbt von SqlSmoObject.)
Öffentliche Methode IsMember Returns a Boolean value that specifies whether the login account is a member of a specified role.
Geschützte Methode IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode IsObjectInitialized Überprüft, ob das Objekt initialisiert wurde. (Geerbt von SqlSmoObject.)
Geschützte Methode IsObjectInSpace Überprüft, ob das Objekt isoliert vorhanden oder mit der SQL Server-Instanz verbunden ist. (Geerbt von SqlSmoObject.)
Geschützte Methode IsVersion80SP3 Ermittelt, ob die SQL Server-Version SQL Server 2000 mit SP3 ist. (Geerbt von SqlSmoObject.)
Geschützte Methode IsVersion90AndAbove Ermittelt, ob die SQL Server-Version SQL Server 2005 oder höher ist. (Geerbt von SqlSmoObject.)
Öffentliche Methode ListMembers Returns a list of the roles of which the login account is a member.
Geschützte Methode MarkDropped Legt den zu löschenden SqlSmoState fest. (Geerbt von SqlSmoObject.)
Geschützte Methode MarkForDropImpl Legt den zu löschenden SqlSmoState fest. (Geerbt von SqlSmoObject.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Geschützte Methode PostAlter Die Methode, die nach dem Ändern von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.)
Geschützte Methode PostCreate Die Methode, die nach dem Erstellen von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.)
Geschützte Methode PostDrop Die Methode, die nach dem Löschen von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.)
Öffentliche Methode Refresh Refreshes the login credentials. (Überschreibt ScriptNameObjectBase. . :: . .Refresh() () () ().)
Öffentliche Methode Rename Renames the login account.
Geschützte Methode RenameImpl Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von NamedSmoObject.)
Geschützte Methode RenameImplWorker Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von NamedSmoObject.)
Öffentliche Methode Revoke(ObjectPermissionSet, String) Revokes a previously granted set of permissions from a grantee on the login account.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the login account.
Öffentliche Methode 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.
Öffentliche Methode 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.
Öffentliche Methode 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.
Öffentliche Methode 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.
Öffentliche Methode Script() () () () Generates a Transact-SQL script that can be used to re-create the login account.
Öffentliche Methode Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the login account as specified by the script options.
Geschützte Methode ScriptAlter Ändert SqlSmoObject gemäß den Parametern. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptAnsiQI Scripts the database object in ANSI text. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.)
Geschützte Methode ScriptCreate Ändert SqlSmoObject gemäß den Parametern. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptDdl Löst InvalidSmoOperationException aus. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptDrop Löst InvalidSmoOperationException aus. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptImpl() () () () Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptImpl(ScriptingOptions) Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptImplWorker Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptInformativeHeaders Scripts the information headers. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode ScriptOwner Alters the script owner authorization. (Geerbt von NamedSmoObject.)
Geschützte Methode ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.)
Geschützte Methode SetCollectionTextMode Sets the collection text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetIsSystemNamed Sets a Boolean value that specifies whether the system is named. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetParentImpl Legt das übergeordnete Element von SqlSmoObject auf den newParent-Parameter fest. (Geerbt von SqlSmoObject.)
Geschützte Methode SetSchemaOwned Sets the schema owned value. (Geerbt von NamedSmoObject.)
Geschützte Methode SetTextBody Specifies the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetTextHeader Specifies the text header. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetTextMode Specifies the text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SwitchTextMode Switches the text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode ThrowIfTextIsDirtyForAlter Throws an exception of text has been modified and not persisted. (Geerbt von ScriptNameObjectBase.)
Öffentliche Methode ToString Gibt eine String zurück, die das Objekt darstellt, auf das verwiesen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode TouchImpl Nicht implementiert. (Geerbt von SqlSmoObject.)
Geschützte Methode UnbindDefaultImpl Hebt die Bindung der Standardspalten von SqlSmoObject auf. (Geerbt von SqlSmoObject.)
Geschützte Methode UnbindRuleImpl Hebt die Bindung der Regeln von SqlSmoObject auf. (Geerbt von SqlSmoObject.)
Öffentliche Methode Validate Validates the state of an object. (Geerbt von SmoObjectBase.)

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis PropertyChanged Stellt das Ereignis dar, das bei Änderung einer Eigenschaft auftritt. (Geerbt von SqlSmoObject.)
Öffentliches Ereignis PropertyMetadataChanged Stellt das Ereignis dar, das bei Änderungen an den Eigenschaftsmetadaten auftritt. (Geerbt von SqlSmoObject.)

Zum Anfang

Felder

  Name Beschreibung
Geschütztes Feld m_ExtendedProperties Stellt eine Eigenschaft dar, die zur Erweiterung der von SqlSmoObject bereitgestellten Eigenschaften definiert wird. (Geerbt von SqlSmoObject.)
Geschütztes Feld singletonParent Stellt das übergeordnete Singleton-Element dar. (Geerbt von SqlSmoObject.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .Discover Ermittelt alle Abhängigkeiten. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetDomainRoot Gibt den Stamm der Domäne zurück. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetParent Ruft das übergeordnete Element dieses Objekts ab. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetPropertyType Ruft den Typ der angegebenen Eigenschaft ab. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetPropertyValue Ruft den Wert der angegebenen Eigenschaft ab. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetUrn Ruft den URN (Uniform Resource Name) des Objekts ab. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .Resolve Ruft aus dem URN die Instanz ab, die die Informationen zum Objekt enthält. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .SetObjectState Legt den Objektstatus auf den angegebenen SfcObjectState-Wert fest. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .SetPropertyValue Legt den Eigenschaftswert fest. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcPropertyProvider. . :: . .GetPropertySet Ruft den Schnittstellenverweis auf den Eigenschaftensatz dieses Objekts ab. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcSupportsDesignMode. . :: . .IsDesignMode Gets a Boolean value that indicates whether the object supports design mode. Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt.

Zum Anfang

Hinweise

To get Login object properties, users can be a member of the public fixed server role.

To set Login object properties, users must have ALTER ANY LOGIN permissions on the server or be a member of the sysadmin fixed server role.

To create or drop a login, users must have ALTER ANY LOGIN permissions on the server or be a member of the sysadmin fixed server role.

To grant, deny, or revoke permission on the login to other users, users must have CONTROL permissions on the logon or be a member of the sysadmin or securityadmin fixed server roles.

To set the password on a login without providing an old password, users must be a member of the sysadmin fixed server role.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.