Partager via


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
public virtual bool IsSensitive(
    string propertyName
)
public:
virtual bool IsSensitive(
    String^ propertyName
)
abstract IsSensitive : 
        propertyName:string -> bool  
override IsSensitive : 
        propertyName:string -> bool
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

Microsoft.VisualStudio.Data Namespace