Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines if the AssetUrl value is validated to ensure that it is not empty.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property IsUrlRequired As Boolean
Get
Set
'Usage
Dim instance As AssetUrlSelector
Dim value As Boolean
value = instance.IsUrlRequired
instance.IsUrlRequired = value
public bool IsUrlRequired { get; set; }
Property Value
Type: System.Boolean
true to validate the AssetUrl value to ensure that it is not empty; otherwise, false (the default).
Remarks
Do not set this property to true if the AssetUrlTextBoxVisible or ValidateUrl property is set to false.
Examples
// These values control the appearance of the text box
// and button for the control.
private const bool SampleIsUrlRequired = true;
// Set values for the behavior and validation// for the text box.assetSelector.IsUrlRequired = SampleIsUrlRequired;
' These values control the appearance of the text box
' and button for the control.
Private Const SampleIsUrlRequired As Boolean = True
' Set values for the behavior and validation
' for the text box.
assetSelector.IsUrlRequired = SampleIsUrlRequired