Share via


DocumentLibraryFileExistValidator.FolderUrlPart Property

Gets or sets folder URL part of the URL of the document library file.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Property FolderUrlPart As String
    Get
    Set
'Usage
Dim instance As DocumentLibraryFileExistValidator
Dim value As String

value = instance.FolderUrlPart

instance.FolderUrlPart = value
public string FolderUrlPart { get; set; }

Property Value

Type: System.String
A string that specifies the folder URL part of the URL of the document library file.

Remarks

For example, if the file named "page1.aspx" is in the page library of a SharePoint site "http://MyServer/MySite"and the file is in the sub folder named "folder1", and the full url of the file is "http://MyServer/Mysite/Pages/folder1/page1.aspx", then the FolderUrlPart will be "/folder1".

Similarly, if the full url of the file is "http://MyServer/Mysite/Pages/folder1/subfolder1/page1.aspx", then the FolderUrlPart will be "/folder1/subfolder1".

If the file is in the root folder of a document library, then the FolderUrlPart is an empty string.

See Also

Reference

DocumentLibraryFileExistValidator Class

DocumentLibraryFileExistValidator Members

Microsoft.SharePoint.Publishing.WebControls Namespace