SPUrlUtility.IsProtocolAllowed method (String)
取得布林值,指出指定的 URL 是否使用支援的通訊協定。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function IsProtocolAllowed ( _
fullOrRelativeUrl As String _
) As Boolean
'用途
Dim fullOrRelativeUrl As String
Dim returnValue As Boolean
returnValue = SPUrlUtility.IsProtocolAllowed(fullOrRelativeUrl)
public static bool IsProtocolAllowed(
string fullOrRelativeUrl
)
參數
fullOrRelativeUrl
Type: System.String字串,包含完整或相對 URL。
傳回值
Type: System.Boolean
true如果 URL 使用支援的通訊協定。否則, false。
備註
若要傳回的陣列允許的通訊協定,請使用AllowedProtocols屬性。