Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Gets a path name pointing to the system's current temporary directory.
' Usage
Dim value As String = My.Computer.FileSystem.SpecialDirectories.Temp
' Declaration
Public ReadOnly Property Temp As String
Property Value
String.
Exceptions
The following condition may cause an exception:
- The path is empty, usually because the operating system does not support the directory (DirectoryNotFoundException).
Remarks
The My.Computer.FileSystem.SpecialDirectories Object contains paths to commonly referenced directories.
Example
This example displays the path for the system's current temporary directory in a MessageBox.
MsgBox(My.Computer.FileSystem.SpecialDirectories.Temp)
Requirements
Namespace:Microsoft.VisualBasic.MyServices
Class:SpecialDirectoriesProxy (provides access to SpecialDirectories)
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)
Permissions
The following permissions are required:
Permission |
Description |
|---|---|
Controls access to system and user environment variables. Associated enumeration: Unrestricted. |
|
Controls the ability to access files and folders. Associated enumeration: Unrestricted. |
For more information, see Code Access Security and Requesting Permissions.