Share via


TrustGeneralSettingSection.CustomValidatorTrustName Method

Validates whether the user has proivided a valid name for a trust relationship.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Sub CustomValidatorTrustName ( _
    sender As Object, _
    args As ServerValidateEventArgs _
)
'Usage
Dim sender As Object
Dim args As ServerValidateEventArgs

Me.CustomValidatorTrustName(sender, _
    args)
protected void CustomValidatorTrustName(
    Object sender,
    ServerValidateEventArgs args
)

Parameters

Remarks

If the user enters a trust relationship name that duplicates an existing trusted service consumer or trusted service provider, the validator causes the page to report to the user that he has entered an invalid name. Otherwise, the method sets the page state to valid.

See Also

Reference

TrustGeneralSettingSection Class

TrustGeneralSettingSection Members

Microsoft.SharePoint.WebControls Namespace