Share via


ImgElement.protocol Property

SharePoint Designer Developer Reference

Returns a String that represents how a document is accessed.

Syntax

expression.protocol

expression   Required. A variable that represents an ImgElement object.

Remarks

The protocol property returns a substring of the document's URL up to and including the first colon. For example, a page from a disk-based Web site returns a protocol property String of "file:". A page from a server-based Web site might return a protocol property String of "http:".

Although the Object Browser in the Visual Basic Editor shows the protocol property as read/write, if you try to set the protocol property you will receive an error.

See Also