ScopeExists Método (String, SqlConnection)
Nota: esta API ya está obsoleta.
Devuelve información sobre si existe el ámbito especificado.
Espacio de nombres: Microsoft.Synchronization.Data.SqlServer
Ensamblado: Microsoft.Synchronization.Data.SqlServer (en Microsoft.Synchronization.Data.SqlServer.dll)
Sintaxis
'Declaración
<ObsoleteAttribute("Use Constructor with SqlConnection and ScopeExists(string scopeName)")> _
Public Function ScopeExists ( _
scopeName As String, _
connection As SqlConnection _
) As Boolean
'Uso
Dim instance As SqlSyncScopeProvisioning
Dim scopeName As String
Dim connection As SqlConnection
Dim returnValue As Boolean
returnValue = instance.ScopeExists(scopeName, _
connection)
[ObsoleteAttribute("Use Constructor with SqlConnection and ScopeExists(string scopeName)")]
public bool ScopeExists(
string scopeName,
SqlConnection connection
)
[ObsoleteAttribute(L"Use Constructor with SqlConnection and ScopeExists(string scopeName)")]
public:
bool ScopeExists(
String^ scopeName,
SqlConnection^ connection
)
[<ObsoleteAttribute("Use Constructor with SqlConnection and ScopeExists(string scopeName)")>]
member ScopeExists :
scopeName:string *
connection:SqlConnection -> bool
public function ScopeExists(
scopeName : String,
connection : SqlConnection
) : boolean
Parámetros
- scopeName
Tipo: System. . :: . .String
El nombre del ámbito que se va a comprobar.
- connection
Tipo: System.Data.SqlClient. . :: . .SqlConnection
Conexión con la base de datos.
Valor devuelto
Tipo: System. . :: . .Boolean
Excepciones
Excepción | Condición |
---|---|
ArgumentException | El parámetro scopeName está vacío o es una null Nothing nullptr unit es una referencia NULL (Nothing en Visual Basic). . |
ArgumentNullException | El parámetro connection es una null Nothing nullptr unit es una referencia NULL (Nothing en Visual Basic). . |
Vea también
Referencia
SqlSyncScopeProvisioning Clase