IsValid (Role Interface)

ms134870.note(zh-tw,SQL.90).gif附註:
  下一版的 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

請參閱

參考

Role Interface

說明及資訊

取得 SQL Server 2005 協助