SetFileOrWebPage Method (IHyperLink)

SetFileOrWebPage Method (IHyperLink) | Send Feedback
See Also

Destination
  URL of a web page or the path and file name of a file

Sublocation
  Valid URL of a web page or the path and file name of a file

Sets the hyperlink to be a URL of a web page or the path and file name of a file.

# Syntax

Visual Basic |
--- | ---
    Sub SetFileOrWebPage( _
       ByVal Destination As System.String, _
       ByVal Sublocation As System.String _
    )

C# |
--- | ---
    void SetFileOrWebPage(
       System.string Destination,
       System.string Sublocation
    )

JavaScript |
--- | ---
    SetFileOrWebPage(
       Destination : String,
       Sublocation : String
    )

COM native C++ |
--- | ---
    HRESULT SetFileOrWebPage(
       BSTR Destination,
       BSTR Sublocation
    )

C++ |
--- | ---
    DSRESULT SetFileOrWebPage(
       const dsString& Destination,
       const dsString& Sublocation
    )

#### Parameters

Destination
  URL of a web page or the path and file name of a file
Sublocation
  Valid URL of a web page or the path and file name of a file

# Remarks

This method is valid only if IHyperLink::GetType is dsHyperLinkType_e.dsHyperLinkType_FileOrWebPage.

# See Also

####

IHyperLink Interface
IHyperLink Members
IHyperLink::GetAsFileOrWebPage Method

# Availability

DraftSight V1R1.3