ConnectionSecurityContext 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示你连接 Microsoft SQL Server 时使用的信息。
public ref class ConnectionSecurityContext sealed : Microsoft::SqlServer::Replication::IConnectionSecurityContext
public sealed class ConnectionSecurityContext : Microsoft.SqlServer.Replication.IConnectionSecurityContext
type ConnectionSecurityContext = class
interface IConnectionSecurityContext
Public NotInheritable Class ConnectionSecurityContext
Implements IConnectionSecurityContext
- 继承
-
ConnectionSecurityContext
- 实现
注解
安全上下文是认证模式与如果你使用SQL Server认证,则是SQL Server登录和密码的组合。 请尽可能使用 Windows 身份验证。
该命名空间、类或成员仅在Microsoft .NET Framework版本2.0中支持。
构造函数
| 名称 | 说明 |
|---|---|
| ConnectionSecurityContext() |
初始化 ConnectionSecurityContext 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| SecureSqlStandardPassword |
使用 SQL Server 认证时获取或设置密码。 |
| SqlStandardLogin |
获取或设置使用 SQL Server 认证的登录信息。 |
| SqlStandardPassword |
获取或设置SQL Server认证所需登录密码。 |
| WindowsAuthentication |
获取或设置Boolean属性,指定连接是通过 Windows 认证还是 SQL Server 认证建立。 |
方法
| 名称 | 说明 |
|---|---|
| Update() |
更新与连接安全上下文相关的调度字段。 |