Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ConnectionSecurityContext Class

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


Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

public sealed class ConnectionSecurityContext : IConnectionSecurityContext

The ConnectionSecurityContext type exposes the following members.

Public methodConnectionSecurityContextInitializes a new instance of the ConnectionSecurityContext class.

Public propertySecureSqlStandardPasswordGets or sets the password when using SQL Server Authentication.
Public propertySqlStandardLoginGets or sets the login used with SQL Server Authentication.
Public propertySqlStandardPasswordGets or sets the password for the login required for SQL Server Authentication.
Public propertyWindowsAuthenticationGets or sets the Boolean property that specifies whether the connection is made by using Windows Authentication or SQL Server Authentication.

Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodUpdateUpdates 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. When possible, use Windows Authentication.

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2015 Microsoft