Export-Methode
Exports the registered server to the specified file and using the given credential persistence type.
Namespace: Microsoft.SqlServer.Management.RegisteredServers
Assembly: Microsoft.SqlServer.Management.RegisteredServers (in Microsoft.SqlServer.Management.RegisteredServers.dll)
Syntax
'Declaration
Public Sub Export ( _
file As String, _
cpt As CredentialPersistenceType _
)
'Usage
Dim instance As RegisteredServer
Dim file As String
Dim cpt As CredentialPersistenceType
instance.Export(file, cpt)
public void Export(
string file,
CredentialPersistenceType cpt
)
public:
void Export(
String^ file,
CredentialPersistenceType cpt
)
member Export :
file:string *
cpt:CredentialPersistenceType -> unit
public function Export(
file : String,
cpt : CredentialPersistenceType
)
Parameter
- file
Typ: System. . :: . .String
A String value that specifies the file to which the registered server is exported.
- cpt
Typ: Microsoft.SqlServer.Management.RegisteredServers. . :: . .CredentialPersistenceType
A CredentialPersistenceType value that specifies how the login and password information are persisted.
Hinweise
Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.