Wobsah

# HasUnoInterfaces Function

Tests if a Basic Uno object supports certain Uno interfaces.

Returns True, if all stated Uno interfaces are supported, otherwise False is returned.

### Syntaksa:

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

### Typ wróćenja:

Bool

### Parametry:

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)

### Přikład:

    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

Podobne temy

UNO Objects, Functions and Services

Prošu podpěrajće nas!