Compartir a través de


DataConnectionProperties.IsSensitive Method

Indicates whether a property contains sensitive information.

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

Syntax

'Declaration
Public Function IsSensitive ( _
    key As String _
) As Boolean
public bool IsSensitive(
    string key
)
public:
virtual bool IsSensitive(
    String^ key
) sealed
abstract IsSensitive : 
        key:string -> bool  
override IsSensitive : 
        key:string -> bool
public final function IsSensitive(
    key : String
) : boolean

Parameters

Return Value

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

Implements

IVsDataConnectionUIProperties.IsSensitive(String)

Exceptions

Exception Condition
ArgumentNullException

The key parameter is nulla null reference (Nothing in Visual Basic).

Remarks

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

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data.Framework Namespace