Export 方法
Exports the registered server to the specified file and using the given credential persistence type.
命名空間: Microsoft.SqlServer.Management.RegisteredServers
組件: Microsoft.SqlServer.Management.RegisteredServers (在 Microsoft.SqlServer.Management.RegisteredServers.dll 中)
語法
'宣告
Public Sub Export ( _
file As String, _
cpt As CredentialPersistenceType _
)
'用途
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
)
參數
- file
型別:System. . :: . .String
A String value that specifies the file to which the registered server is exported.
- cpt
型別:Microsoft.SqlServer.Management.RegisteredServers. . :: . .CredentialPersistenceType
A CredentialPersistenceType value that specifies how the login and password information are persisted.
備註
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。