ExecuteCmdletBase() public method

public ExecuteCmdletBase ( System.Management.Automation.PSCmdlet callingCmdlet ) : void
callingCmdlet System.Management.Automation.PSCmdlet
return void
Esempio n. 1
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Get_GLDomainBase getGLDomainBase = new Get_GLDomainBase();
            getGLDomainBase.DatabaseServer = DatabaseServer;
            getGLDomainBase.DatabaseName = DatabaseName;

            if (DomainId != Guid.Empty)
            {
                getGLDomainBase.DomainId = DomainId;
            }
            else if (!string.IsNullOrEmpty(DomainName))
            {
                getGLDomainBase.DomainName = DomainName;
            }

            getGLDomainBase.ExecuteCmdletBase(this);
        }
Esempio n. 2
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Get_GLDomainBase getGLDomainBase = new Get_GLDomainBase();

            if (!Loader.PopulateCmdletBase(this, ref getGLDomainBase))
            {
                return;
            }

            if (DomainId != Guid.Empty)
            {
                getGLDomainBase.DomainId = DomainId;
            }
            else if (!string.IsNullOrEmpty(DomainName))
            {
                getGLDomainBase.DomainName = DomainName;
            }

            getGLDomainBase.ExecuteCmdletBase(this);
        }