PSRemotingBaseCmdlet.ValidateComputerName(String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates computer names to check if none of them happen to be a Uri. If so this throws an error.
protected:
void ValidateComputerName(cli::array <System::String ^> ^ computerNames);
protected:
void ValidateComputerName(Platform::Array <Platform::String ^> ^ computerNames);
void ValidateComputerName(std::Array <std::wstring const &> const & computerNames);
protected void ValidateComputerName (string[] computerNames);
member this.ValidateComputerName : string[] -> unit
Protected Sub ValidateComputerName (computerNames As String())
Parameters
- computerNames
- String[]
collection of computer names to validate