Freigeben über


DacServices.Register-Methode (String, String, Version, String)

Adds DAC registration information for the specified target database.

Namespace:  Microsoft.SqlServer.Dac
Assembly:  Microsoft.SqlServer.Dac (in Microsoft.SqlServer.Dac.dll)

Syntax

'Declaration
Public Sub Register ( _
    targetDatabaseName As String, _
    applicationName As String, _
    applicationVersion As Version, _
    applicationDescription As String _
)
'Usage
Dim instance As DacServices 
Dim targetDatabaseName As String 
Dim applicationName As String 
Dim applicationVersion As Version 
Dim applicationDescription As String

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

Parameter

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

Ausnahmen

Ausnahme Bedingung
ArgumentException

If any of the required arguments are null or zero-length strings.

Siehe auch

Verweis

DacServices Klasse

Register-Überladung

Microsoft.SqlServer.Dac-Namespace