Conteúdo

# Função HasUnoInterfaces

Verifica se um objeto do Basic Uno aceita certas interfaces Uno.

Devolve True, se aceitar todas as interfaces Uno referidas, caso contrário devolve False.

### Sintaxe:

HasUnoInterfaces( oTest, Uno-Interface-Name 1 [, Uno-Interface-Name 2, ...])

### Return type:

Bool

### Parâmetros:

Name | Type | Description
--- | --- | ---
oTest | Object | the Basic Uno object that you want to test.
Uno-Interface-Name 1, Uno-Interface-Name 2, ... | String | Uno interface name(s)

### Exemplo:

    Sub HasInterface
        Dim bHas as Boolean
        Dim oSheet as Object
        oSheet = ThisComponent.Sheets(0)
        bHas = HasUnoInterfaces( oSheet, "com.sun.star.beans.XIntrospection" )
        Print bHas ' = True
    End Sub

Tópicos relacionados

UNO Objects, Functions and Services