System.Management.Automation.CmdletInfo.CmdletInfo C# (CSharp) Method

CmdletInfo() private method

private CmdletInfo ( string name, Type implementingType, string helpFile, System.Management.Automation.PSSnapInInfo PSSnapin, ExecutionContext context ) : System
name string
implementingType System.Type
helpFile string
PSSnapin System.Management.Automation.PSSnapInInfo
context System.Threading.ExecutionContext
return System
        internal CmdletInfo(string name, Type implementingType, string helpFile, PSSnapInInfo PSSnapin, ExecutionContext context)
            : base(name, CommandTypes.Cmdlet)
        {
            int i = name.IndexOf('-');
            if (i == -1)
            {
                throw new Exception("InvalidCmdletNameFormat " + name);
            }
            Verb = name.Substring(0, i);
            Noun = name.Substring(i + 1);
            ImplementingType = implementingType;
            HelpFile = helpFile;
            PSSnapIn = PSSnapin;
            _context = context;
            ParameterSets = GetParameterSetInfo(implementingType);
        }