IsUnoStruct Function

์ง€์ •ํ•œ ๊ฐœ์ฒด๊ฐ€ Uno ๊ตฌ์กฐ์ผ ๊ฒฝ์šฐ True๋ฅผ ๊ตฌํ•ฉ๋‹ˆ๋‹ค.

๊ตฌ๋ฌธ:

IsUnoStruct( Uno type name )

๋ฐ˜ํ™˜ ๊ฐ’:

Bool

๋งค๊ฐœ ๋ณ€์ˆ˜:

Uno type name: Uno ์œ ํ˜•์˜ ์ด๋ฆ„์ž…๋‹ˆ๋‹ค.

์˜ˆ:

Sub Main

Dim bIsStruct

' Instantiate a service

Dim oSimpleFileAccess

oSimpleFileAccess = CreateUnoService( "com.sun.star.ucb.SimpleFileAccess" )

bIsStruct = IsUnoStruct( oSimpleFileAccess )

MsgBox bIsStruct ' Displays False because oSimpleFileAccess is NO struct

' Instantiate a Property struct

Dim aProperty As New com.sun.star.beans.Property

bIsStruct = IsUnoStruct( aProperty )

MsgBox bIsStruct ' Displays True because aProperty is a struct

bIsStruct = IsUnoStruct( 42 )

MsgBox bIsStruct ' Displays False because 42 is NO struct

End Sub