IsValid (Role Interface)

[!NOTA]

  Questa caratteristica verrà rimossa a partire dalla prossima versione di Microsoft SQL Server. Non utilizzare questa caratteristica in un nuovo progetto di sviluppo e modificare non appena possibile le applicazioni in cui è attualmente implementata.

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

Osservazioni

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

Esempio

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

Dim bRet As Boolean
bRet = RoleObject.IsValid

Vedere anche

Riferimento