IsValid (Role Interface)

注意注意

  下一版本的 Microsoft SQL Server 将删除该功能。 请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。

The IsValid property of the Role interface indicates whether the role object structure is valid.

Applies To:clsCubeRole, clsDatabaseRole, clsMiningModelRole

Data Type

Boolean

Access

Read-only

注释

A role object is valid if the Name and UsersList properties are not empty strings and if its Parent property is valid.

示例

Use the following code to return a role object validity status:

Dim bRet As Boolean
bRet = RoleObject.IsValid

请参阅

参考