Поделиться через


Класс ConnectionSecurityContext

Represents information you use when you connect to Microsoft SQL Server.

Иерархия наследования

System.Object
  Microsoft.SqlServer.Replication.ConnectionSecurityContext

Пространство имен:  Microsoft.SqlServer.Replication
Сборка:  Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)

Синтаксис

'Декларация
Public NotInheritable Class ConnectionSecurityContext _
    Implements IConnectionSecurityContext
'Применение
Dim instance As ConnectionSecurityContext
public sealed class ConnectionSecurityContext : IConnectionSecurityContext
public ref class ConnectionSecurityContext sealed : IConnectionSecurityContext
[<SealedAttribute>]
type ConnectionSecurityContext =  
    class 
        interface IConnectionSecurityContext 
    end
public final class ConnectionSecurityContext implements IConnectionSecurityContext

Тип ConnectionSecurityContext обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод ConnectionSecurityContext Initializes a new instance of the ConnectionSecurityContext class.

В начало

Свойства

  Имя Описание
Открытое свойство SecureSqlStandardPassword Gets or sets the password when using SQL Server Authentication.
Открытое свойство SqlStandardLogin Gets or sets the login used with SQL Server Authentication.
Открытое свойство SqlStandardPassword Gets or sets the password for the login required for SQL Server Authentication.
Открытое свойство WindowsAuthentication Gets or sets the Boolean property that specifies whether the connection is made by using Windows Authentication or SQL Server Authentication.

В начало

Методы

  Имя Описание
Открытый метод Equals (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Открытый метод ToString (Производный от Object.)
Открытый метод Update Updates schedule fields associated with the connection security context.

В начало

Замечания

A security context is the combination of the authentication mode and, if you use SQL Server Authentication, the SQL Server login and password. По возможности используйте проверку подлинности Windows.

This namespace, class, or member is supported only in the Microsoft .NET Framework version 2.0.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Replication