private PSUserDefinedResources GetValidUserDefinedResources(PSUserDefinedResources userDefinedResources) { if (userDefinedResources != null && userDefinedResources.Validate()) { return(userDefinedResources); } return(null); }
public override void ExecuteCmdlet() { PSUserDefinedResources userDefinedRes = new PSUserDefinedResources { Query = Query, QuerySubscriptions = QuerySubscriptionList }; WriteObject(userDefinedRes, enumerateCollection: false); }