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
Defaults to false.If set to true, the AssetUrl value will be validated to ensure that it is not empty.

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;

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AssetUrlSelector