Share via


AssetUrlSelector.IsUrlRequired property

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

See also

Reference

AssetUrlSelector class

AssetUrlSelector members

Microsoft.SharePoint.Publishing.WebControls namespace

AssetUrlSelector