SPAttachmentCollection.UrlPrefix property

Gets the URL for the directory that contains the collection.

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

Syntax

'Declaration
Public ReadOnly Property UrlPrefix As String
    Get
'Usage
Dim instance As SPAttachmentCollection
Dim value As String

value = instance.UrlPrefix
public string UrlPrefix { get; }

Property value

Type: System.String
A string that contains the full path of the prefix for all attachments to the list item and that ends with a trailing forward slash (/). For example, if a list item in the Announcements list of a top-level Web site has the ID 101, the UrlPrefix property contains a URL in the format https://Server/Lists/Announcements/Attachments/101/.

See also

Reference

SPAttachmentCollection class

SPAttachmentCollection members

Microsoft.SharePoint namespace