Can I use two FolderItem.TemporaryFile?

Can I have two FolderItem.TemporaryFile like:

Var f As FolderItem
Var g As FolderItem

f = FolderItem.TemporaryFile
g = FolderItem.TemporaryFile

I ask because the code above compiles and “works” (I do not use f nor g, so…). And the documentation (here) says:

Indicates a property of method that belongs to the class rather than the instance.

Yes. Each time you call FolderItem.TemporaryFile a randomly-named temp file is created.

Thanks Andrew.

So, I do not understand why they talked about shared; the first sentence there.

This is the sentence telling FolderItem.TemporaryFile is “shared”:
This method is shared.

”Shared”, in this context, refers to the fact that you can use the method directly from the class, avoiding to create an object.

Instead of:
Dim f as folderitem=SomeItem //Create a valid object
Dim g as folderitem=f.TemporaryFile //Get TemporaryFile from the existing “f” object

You can refer to it straight from the class:
Dim g as Folderitem=Folderitem.TemporaryFile //From the class

Thank you, I see… a candel.