Databases Reference
In-Depth Information
VB.NET
Public Property IntegratedSecurity() As Boolean
Implements IDbConnectionExtension.IntegratedSecurity
Get
Return m_integrated
End Get
Set(ByVal value As Boolean)
m_integrated = value
End Set
End Property
UserName/Password Properties
The UserName and Password properties are used during the Reporting Services authentication process.
The UserName/Password pair are authenticated against either the Windows credential store or some
custom store you provide. Next, an object that implements IPrincipal is created and assigned to the
current thread of execution. That object contains the user's identity and role membership information and
is used to authorize user access to system resources (the data source). Good security practice dictates that
this information be available for the shortest time possible — thus the use of read-only properties.
C#
public string Password
{
set { m_password = value; }
}
public string UserName
{
set { m_userName = value; }
}
VB.NET
Public WriteOnly Property Password() As String
Implements IDbConnectionExtension.Password
Set(ByVal value As String)
m_password = value
End Set
End Property
Public WriteOnly Property UserName() As String
Implements IDbConnectionExtension.UserName
Set(ByVal value As String)
m_userName = value
End Set
End Property
Implementing IDbConnection
The IDbConnection interface is the standard mechanism that data providers use to control the use of
the connection object. These properties and methods help you make changes to the connection settings,
open and close the connection, and associate the connection with a valid transaction. Your connection
object does not support transactions due to its read-only nature and because you are working against a
file system, which is not a resource manager.
Search WWH ::




Custom Search