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.
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。