ValidateName Method
See Also 
SourceCode.Framework.Design Namespace > NamedObject Class : ValidateName Method



name
The name.

Glossary Item Box

Validates the name.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub ValidateName( _
   ByVal name As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As NamedObject
Dim name As String
 
instance.ValidateName(name)
C# 
public virtual void ValidateName( 
   string name
)
C++/CLI 
public:
virtual void ValidateName( 
   String^ name
) 

Parameters

name
The name.

Exceptions

ExceptionDescription
System.Exception
SourceCode.Framework.DuplicateNameException Custom exception indicating that a duplicate name has been detected.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also