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