ModelUtilities.TryGetFileNameFromModelElement Method (FileManager, IModelElement, String%)
Gets the file full path for an IModelElement.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project.Utilities
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function TryGetFileNameFromModelElement ( _
fileManager As FileManager, _
element As IModelElement, _
<OutAttribute> ByRef fileFullPath As String _
) As Boolean
'Usage
Dim fileManager As FileManager
Dim element As IModelElement
Dim fileFullPath As String
Dim returnValue As Boolean
returnValue = ModelUtilities.TryGetFileNameFromModelElement(fileManager, _
element, fileFullPath)
public static bool TryGetFileNameFromModelElement(
FileManager fileManager,
IModelElement element,
out string fileFullPath
)
public:
static bool TryGetFileNameFromModelElement(
FileManager^ fileManager,
IModelElement^ element,
[OutAttribute] String^% fileFullPath
)
public static function TryGetFileNameFromModelElement(
fileManager : FileManager,
element : IModelElement,
fileFullPath : String
) : boolean
static member TryGetFileNameFromModelElement :
fileManager:FileManager *
element:IModelElement *
fileFullPath:string -> bool
Parameters
- fileManager
Type: Microsoft.Data.Schema.SchemaModel.FileManager
The file manager with the files
- element
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
The element to open the file for
- fileFullPath
Type: System.String%
The resulting full file path found
Return Value
Type: System.Boolean
.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.
See Also
Reference
TryGetFileNameFromModelElement Overload
Microsoft.VisualStudio.Data.Schema.Project.Project.Utilities Namespace