Classe RegisteredServer
Remarque : cette API est désormais obsolète.
The RegisteredServer object represents a SQL Server registered server.
Hiérarchie d'héritage
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo.RegisteredServers. . :: . .RegSvrSmoObject
Microsoft.SqlServer.Management.Smo.RegisteredServers..::..RegisteredServer
Espace de noms : Microsoft.SqlServer.Management.Smo.RegisteredServers
Assembly : Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)
Syntaxe
'Déclaration
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public NotInheritable Class RegisteredServer _
Inherits RegSvrSmoObject _
Implements ICreatable, IAlterable, IDroppable
'Utilisation
Dim instance As RegisteredServer
[ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public sealed class RegisteredServer : RegSvrSmoObject,
ICreatable, IAlterable, IDroppable
[ObsoleteAttribute(L"Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public ref class RegisteredServer sealed : public RegSvrSmoObject,
ICreatable, IAlterable, IDroppable
[<SealedAttribute>]
[<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")>]
type RegisteredServer =
class
inherit RegSvrSmoObject
interface ICreatable
interface IAlterable
interface IDroppable
end
public final class RegisteredServer extends RegSvrSmoObject implements ICreatable, IAlterable, IDroppable
Le type RegisteredServer expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
RegisteredServer() () () () | Initializes a new instance of the RegisteredServer object. | |
RegisteredServer(String) | Initializes a new instance of the RegisteredServer object. | |
RegisteredServer(RegisteredServerCollection, String) | Initializes a new instance of the RegisteredServer object. | |
RegisteredServer(ServerGroup, String) | Initializes a new instance of the RegisteredServer object. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
Description | Gets or sets a textual description of the referenced registered server. | |
Login | Gets or sets the login used to establish a connection with the registered server. | |
LoginSecure | Gets or sets the Boolean property value that specifies whether the connection is authenticated by Windows Authentication. | |
Name | Gets or sets the name of the object. (hérité de RegSvrSmoObject.) | |
Parent | Gets the ServerGroup object value that specifies the parent of the RegisteredServer object. | |
Properties | Gets the properties associated with the object. (hérité de RegSvrSmoObject.) | |
SecurePassword | Gets or sets the password used with SQL Server standard authentication to establish a connection to the registered server. | |
ServerInstance | Gets or sets the instance of SQL Server that is the registered server. | |
State | Gets the state of the referenced object. (hérité de SmoObjectBase.) | |
Urn | Gets the Urn object value that represents the referenced registered server. (remplace RegSvrSmoObject. . :: . .Urn.) | |
UrnSkeleton | Gets the Urn object that represents the object. (hérité de RegSvrSmoObject.) | |
UserData | Gets or sets user-defined data associated with the referenced object. (hérité de SmoObjectBase.) |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
Alter | Updates any RegisteredServer object property changes on the instance of SQL Server. | |
CheckObjectState | Checks the state of the object. (hérité de RegSvrSmoObject.) | |
Create | Creates a registered server on the instance of SQL Server as defined by the RegisteredServer object. | |
Drop | Removes the RegisteredServer from the server group and the registered server collection. | |
Equals | (hérité de Object.) | |
Finalize | (hérité de Object.) | |
GetHashCode | (hérité de Object.) | |
GetSmoObject | Gets a RegSvrSmoObject that is specified by a URN. | |
GetType | (hérité de Object.) | |
ImplInitialize | Initializes the object. (hérité de RegSvrSmoObject.) | |
Initialize | Initializes the object. (hérité de RegSvrSmoObject.) | |
IsObjectInitialized | Gets a Boolean value that specifies whether the object was initialized. (hérité de RegSvrSmoObject.) | |
MemberwiseClone | (hérité de Object.) | |
Refresh | Refreshes the properties of the object. (hérité de RegSvrSmoObject.) | |
SetParentImpl | Sets a parent. (hérité de RegSvrSmoObject.) | |
ToString | (hérité de Object.) | |
UpdateObjectState | Gets the updated object state. (hérité de RegSvrSmoObject.) | |
Validate | Validates the state of an object. (hérité de SmoObjectBase.) |
Haut de la page
Notes
Thread Safety
Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.
To get or set RegisteredServer object properties, users must be a member of the sysadmin fixed server role.
To create or drop a registered server, users must be a member of the sysadmin fixed server role.
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.
Voir aussi