AdoDotNetConnectionProperties.IsSensitive Method
Returns a Boolean value indicating whether a specified property contains sensitive information.
Namespace: Microsoft.VisualStudio.Data.AdoDotNet
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Overrides Function IsSensitive ( _
propertyName As String _
) As Boolean
public override bool IsSensitive(
string propertyName
)
public:
virtual bool IsSensitive(
String^ propertyName
) override
abstract IsSensitive :
propertyName:string -> bool
override IsSensitive :
propertyName:string -> bool
public override function IsSensitive(
propertyName : String
) : boolean
Parameters
propertyName
Type: System.StringName of the property for which the indication of sensitive information is provided.
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 PasswordPropertyText attribute for the specified property and return true if this attribute is set to true; otherwise it returns false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AdoDotNetConnectionProperties Class