BELEW‖HasUnoInterfaces Function

Contents
AbBSu‖

# kE9xe‖HasUnoInterfaces Function

JUPxm‖Tests if a Basic Uno object supports certain Uno interfaces.

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

### FVEx2‖Syntax:

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

### bBBqF‖Return type:

Bool

### WADQ4‖Parameters:

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

### EFSA4‖Example:

    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

Related Topics

UNO Objects, Functions and Services

Please support us!