DataConnectionProperties.IsSensitive 方法

指示属性是否包含敏感信息。

命名空间:  Microsoft.VisualStudio.Data
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
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

参数

  • propertyName
    类型:String

    属性的名称。

返回值

类型:Boolean
如果属性包含敏感信息,则返回; true 否则,返回 false。

异常

异常 条件
ArgumentNullException

propertyName 参数为 null。

ArgumentException

该属性不存在。

备注

如果此特性设置为 true,此方法的基实现检索所指定的属性的 PasswordPropertyTextAttribute 属性并返回 true ;否则返回 false。

.NET Framework 安全性

请参阅

参考

DataConnectionProperties 类

Microsoft.VisualStudio.Data 命名空间