PagePorter Class Library

Navigation.GetPageID Method 

Returns the page ID for a given url within the web, or zero if it doesn't exist.

[Visual Basic]
Public Function GetPageID( _
   ByVal url As String _
) As Integer
[C#]
public int GetPageID(
   string url
);

Parameters

url
The url for the page.

Return Value

The page identifier, or zero if the page does not exist.

Remarks

This method always returns a page's identifier, even if it is marked as Excluded. The returned NavigationPage object is always from the main navigation structure, and never from a Custom Link Bar.

See Also

Navigation Class | Parastream.Web.MsFrontPage Namespace