共用方式為


SPUrlUtility.IsProtocolAllowed Method

Include Protected Members
Include Inherited Members

Gets a Boolean value indicating whether the specified URL uses a supported protocol.

Overload List

  Name Description
Public methodStatic member IsProtocolAllowed(String) Gets a Boolean value indicating whether the specified URL uses a supported protocol.
Public methodStatic member IsProtocolAllowed(String, Boolean) Gets a Boolean value indicating whether the specified URL uses a supported protocol.

Top

Remarks

To return an array of allowed protocols, use the AllowedProtocols property.

See Also

Reference

SPUrlUtility Class

SPUrlUtility Members

Microsoft.SharePoint.Utilities Namespace