Compartilhar via


RiaClientFilesTask.GetFullPathRelativeToDirectory Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Resolves a potentially relative path and a root directory to a full path.

Namespace:  Microsoft.ServiceModel.DomainServices.Tools
Assembly:  Microsoft.ServiceModel.DomainServices.Tools (in Microsoft.ServiceModel.DomainServices.Tools.dll)

Syntax

'Declaration
Protected Function GetFullPathRelativeToDirectory ( _
    fileName As String, _
    directory As String _
) As String
'Usage
Dim fileName As String
Dim directory As String
Dim returnValue As String

returnValue = Me.GetFullPathRelativeToDirectory(fileName, _
    directory)
protected string GetFullPathRelativeToDirectory(
    string fileName,
    string directory
)
protected:
String^ GetFullPathRelativeToDirectory(
    String^ fileName, 
    String^ directory
)
member GetFullPathRelativeToDirectory : 
        fileName:string * 
        directory:string -> string 
protected function GetFullPathRelativeToDirectory(
    fileName : String, 
    directory : String
) : String

Parameters

  • fileName
    Type: System.String
    Name of the file that might be relative or full.
  • directory
    Type: System.String
    Name of directory to use as root if file name is relative.

Return Value

Type: System.String
The full path of the file.

See Also

Reference

RiaClientFilesTask Class

Microsoft.ServiceModel.DomainServices.Tools Namespace