QuickLinkCreator.GetLink method (String, String, String, String)
Returns the JavaScript used to submit the form to create the quick link with the specified title, URL, type and the JavaScript function that is called when the user clicks the quick link.
Namespace: Microsoft.Office.Server.WebControls
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Shared Function GetLink ( _
strTitle As String, _
strUrl As String, _
strType As String, _
strRedirectScript As String _
) As String
'Usage
Dim strTitle As String
Dim strUrl As String
Dim strType As String
Dim strRedirectScript As String
Dim returnValue As String
returnValue = QuickLinkCreator.GetLink(strTitle, _
strUrl, strType, strRedirectScript)
public static string GetLink(
string strTitle,
string strUrl,
string strType,
string strRedirectScript
)
Parameters
strTitle
Type: System.StringThe String object that represents the title of the quick link.
strUrl
Type: System.StringThe String object that represents the URL to which the quick link redirects.
strType
Type: System.StringThe String object that represents the type of the quick link.
strRedirectScript
Type: System.StringThe String object that represents the JavaScript function that is called when the user clicks the quick link.
Return value
Type: System.String
The String object that represents the JavaScript function used to submit the form to create the quick link.
Remarks
This method returns the JavaScript used to create the quick link when the user clicks a link. The JavaScript stores the title, the URL that is obtained from the browser, the type and the JavaScript function that is called when the user clicks the quick link in hidden fields, and then submits the form to create the quick link.