Compartilhar via


RiaClientFilesTask.GetPathRelativeToProjectDirectory 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.]

Returns the relative path under the project directory if the file path is under the project directory, otherwise returns the original file path.

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

Syntax

'Declaration
Protected Shared Function GetPathRelativeToProjectDirectory ( _
    fileName As String, _
    projectDirectoryPath As String _
) As String
'Usage
Dim fileName As String
Dim projectDirectoryPath As String
Dim returnValue As String

returnValue = RiaClientFilesTask.GetPathRelativeToProjectDirectory(fileName, _
    projectDirectoryPath)
protected static string GetPathRelativeToProjectDirectory(
    string fileName,
    string projectDirectoryPath
)
protected:
static String^ GetPathRelativeToProjectDirectory(
    String^ fileName, 
    String^ projectDirectoryPath
)
static member GetPathRelativeToProjectDirectory : 
        fileName:string * 
        projectDirectoryPath:string -> string 
protected static function GetPathRelativeToProjectDirectory(
    fileName : String, 
    projectDirectoryPath : String
) : String

Parameters

  • projectDirectoryPath
    Type: System.String
    The project directory path.

Return Value

Type: System.String
Relative path under the project directory.

See Also

Reference

RiaClientFilesTask Class

Microsoft.ServiceModel.DomainServices.Tools Namespace