Get file path for an object that implements IVsUserData.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaration
Public Shared Function GetFilePath ( _
unknown As IntPtr _
) As String
'Usage
Dim unknown As IntPtr
Dim returnValue As String
returnValue = FilePathUtilities.GetFilePath(unknown)
public static string GetFilePath(
IntPtr unknown
)
public:
static String^ GetFilePath(
IntPtr unknown
)
public static function GetFilePath(
unknown : IntPtr
) : String
Parameters
unknown
Type: System.IntPtrA pointer to the IUnknown interface of the file path.
Return Value
Type: System.String
The file path.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.