Partager via


PSNamingUtilities.IsModuleOrCmdletName(String) Method

Definition

Returns if the given moduleOrCmdletName is a valid module name or cmdlet name.

public static bool IsModuleOrCmdletName (string moduleOrCmdletName);
static member IsModuleOrCmdletName : string -> bool
Public Shared Function IsModuleOrCmdletName (moduleOrCmdletName As String) As Boolean

Parameters

moduleOrCmdletName
String

Returns

Remarks

This method only does pattern-matching. It does not check if the name is real.

Applies to