DataConnectionProperties.IsSensitive Method

Indicates whether a property contains sensitive information.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public Overridable Function IsSensitive ( _
    propertyName As String _
) As Boolean
'Usage
Dim instance As DataConnectionProperties 
Dim propertyName As String 
Dim returnValue As Boolean 

returnValue = instance.IsSensitive(propertyName)
public virtual bool IsSensitive(
    string propertyName
)
public:
virtual bool IsSensitive(
    String^ propertyName
)
public function IsSensitive(
    propertyName : String
) : boolean

Parameters

Return Value

Type: System.Boolean
Returns true if the property contains sensitive information; otherwise, returns false.

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is null.

ArgumentException

The property does not exist.

Remarks

The base implementation of this method retrieves the PasswordPropertyTextAttribute attribute for the specified property and return true if this attribute is set to true; otherwise it returns false.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

Microsoft.VisualStudio.Data Namespace