Partager via


Méthode DacServices.Register (String, DacSchemaModelStorageType, String, Version, String)

Adds DAC registration information for the specified target database.

Espace de noms :  Microsoft.SqlServer.Dac
Assembly :  Microsoft.SqlServer.Dac (en Microsoft.SqlServer.Dac.dll)

Syntaxe

'Déclaration
Public Sub Register ( _
    targetDatabaseName As String, _
    modelStorageType As DacSchemaModelStorageType, _
    applicationName As String, _
    applicationVersion As Version, _
    applicationDescription As String _
)
'Utilisation
Dim instance As DacServices 
Dim targetDatabaseName As String 
Dim modelStorageType As DacSchemaModelStorageType 
Dim applicationName As String 
Dim applicationVersion As Version 
Dim applicationDescription As String

instance.Register(targetDatabaseName, _
    modelStorageType, applicationName, _
    applicationVersion, applicationDescription)
public void Register(
    string targetDatabaseName,
    DacSchemaModelStorageType modelStorageType,
    string applicationName,
    Version applicationVersion,
    string applicationDescription
)
public:
void Register(
    String^ targetDatabaseName, 
    DacSchemaModelStorageType modelStorageType, 
    String^ applicationName, 
    Version^ applicationVersion, 
    String^ applicationDescription
)
member Register : 
        targetDatabaseName:string * 
        modelStorageType:DacSchemaModelStorageType * 
        applicationName:string * 
        applicationVersion:Version * 
        applicationDescription:string -> unit
public function Register(
    targetDatabaseName : String, 
    modelStorageType : DacSchemaModelStorageType, 
    applicationName : String, 
    applicationVersion : Version, 
    applicationDescription : String
)

Paramètres

  • targetDatabaseName
    Type : System.String
    Name of the database for which to add registration information.
  • applicationName
    Type : System.String
    The application name to be stored in the DAC metadata.
  • applicationVersion
    Type : System.Version
    The version number to be stored in the DAC metadata.
  • applicationDescription
    Type : System.String
    The application description to be stored in the DAC metadata.

Voir aussi

Référence

DacServices Classe

Surcharge Register

Espace de noms Microsoft.SqlServer.Dac