See also:
NTier Windows Forms Framework Home
NTier Framework API reference

Try to get a project item filename at index 0, then at index 1 to get around an inconsistency in how VS handles some project item filenames.

Namespace: NTier.Design
Assembly: NTier.Design (in NTier.Design.dll) Version: 1.0.0.0

Syntax

C#
public static string GetFileName(
	this ProjectItem projectItem
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetFileName ( 
	projectItem As ProjectItem
) As String
Visual C++
public:
[ExtensionAttribute]
static String^ GetFileName(
	ProjectItem^ projectItem
)

Parameters

projectItem
Type: ProjectItem

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ProjectItem. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also