WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIVariant

IID:6c9eb060-8c6a-11d5-90f3-0010a4e73d9a
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

readonly PRUint16 dataType


Methods

[noscript] ACString getAsACString ( ) [notxpcom] nsresult getAsArray ( out PRUint16 type , out nsIID iid , out PRUint32 count , out voidPtr* ptr ) [noscript] AString getAsAString ( ) [noscript] AUTF8String getAsAUTF8String ( ) [noscript] PRBool getAsBool ( ) [noscript] char getAsChar ( ) [noscript] DOMString getAsDOMString ( ) [noscript] double getAsDouble ( ) [noscript] float getAsFloat ( ) [notxpcom] nsresult getAsID ( out nsID retval ) [noscript] PRInt16 getAsInt16 ( ) [noscript] PRInt32 getAsInt32 ( ) [noscript] PRInt64 getAsInt64 ( ) [noscript] PRUint8 getAsInt8 ( ) [noscript] void getAsInterface ( out nsIIDPtr iid , out nsQIResult* iface ) [noscript] nsISupports getAsISupports ( ) [noscript] char* getAsString ( ) [noscript] void getAsStringWithSize ( out PRUint32 size , out char* str ) [noscript] PRUint16 getAsUint16 ( ) [noscript] PRUint32 getAsUint32 ( ) [noscript] PRUint64 getAsUint64 ( ) [noscript] PRUint8 getAsUint8 ( ) [noscript] PRUnichar getAsWChar ( ) [noscript] PRUnichar* getAsWString ( ) [noscript] void getAsWStringWithSize ( out PRUint32 size , out PRUnichar* str )

ACString getAsACString ( )


[notxpcom] nsresult getAsArray ( out PRUint16 type , out nsIID iid , out PRUint32 count , out voidPtr* ptr )

Arguments:
type
iid
count
ptr

AString getAsAString ( )


AUTF8String getAsAUTF8String ( )


PRBool getAsBool ( )


char getAsChar ( )


DOMString getAsDOMString ( )


double getAsDouble ( )


float getAsFloat ( )


[notxpcom] nsresult getAsID ( out nsID retval )

Arguments:
retval

PRInt16 getAsInt16 ( )


PRInt32 getAsInt32 ( )


PRInt64 getAsInt64 ( )


PRUint8 getAsInt8 ( )


void getAsInterface ( out nsIIDPtr iid , out nsQIResult* iface )

Arguments:
iid
iface

nsISupports getAsISupports ( )


char* getAsString ( )


void getAsStringWithSize ( out PRUint32 size , out char* str )

Arguments:
size
str

PRUint16 getAsUint16 ( )


PRUint32 getAsUint32 ( )


PRUint64 getAsUint64 ( )


PRUint8 getAsUint8 ( )


PRUnichar getAsWChar ( )


PRUnichar* getAsWString ( )


void getAsWStringWithSize ( out PRUint32 size , out PRUnichar* str )

Arguments:
size
str

References

This interface is the type of the following properties:

fuelIAnnotations.names, fuelIApplication.windows, fuelIBookmarkFolder.children, fuelIExtensions.all, fuelIPreference.value, fuelIPreferenceBranch.all, fuelIWindow.tabs, nsIDOMCanvasRenderingContext2D.fillStyle, nsIDOMCanvasRenderingContext2D.strokeStyle, nsIDOMModalContentWindow.returnValue, nsIProperty.value, nsITaggingService.allTags

This interface is passed as an argument to the following methods:

fuelIAnnotations.set, fuelIPreferenceBranch.getValue, fuelIPreferenceBranch.setValue, fuelISessionStorage.get, fuelISessionStorage.set, nsIAnnotationService.setItemAnnotation, nsIAnnotationService.setPageAnnotation, nsIContentPrefObserver.onContentPrefSet, nsIContentPrefService.setPref, nsIDOM3Node.setUserData, nsIDOMDOMConfiguration.canSetParameter, nsIDOMDOMConfiguration.setParameter, nsIDOMDataContainerEvent.setData, nsIDOMUserDataHandler.handle, nsIDOMWindowInternal.showModalDialog, nsIPlacesTransactionsService.aggregateTransactions, nsIPlacesTransactionsService.createFolder, nsIPlacesTransactionsService.createItem, nsIPlacesTransactionsService.createLivemark, nsIPlacesTransactionsService.tagURI, nsIPlacesTransactionsService.untagURI, nsITaggingService.tagURI, nsITaggingService.untagURI, nsIWritablePropertyBag.setProperty, nsIWritableVariant.setFromVariant, nsIXMLHttpRequest.send, nsIXPConnect.variantToJS, nsIXSLTProcessor.setParameter

This interface is returned from the following methods:

fuelIAnnotations.get, fuelIPreferenceBranch.getValue, fuelISessionStorage.get, mozIStorageAggregateFunction.onFinal, mozIStorageFunction.onFunctionCall, nsIAnnotationService.getItemAnnotation, nsIAnnotationService.getPageAnnotation, nsIContentPrefService.getPref, nsIDOM3Node.getUserData, nsIDOM3Node.setUserData, nsIDOMDOMConfiguration.getParameter, nsIDOMDataContainerEvent.getData, nsIDOMWindowInternal.showModalDialog, nsIPropertyBag.getProperty, nsIPropertyBag2.get, nsITaggingService.getURIsForTag, nsIXPConnect.JSToVariant, nsIXSLTProcessor.getParameter

Reference documentation is generated from Mozilla's source.