internal static ErrorRecord FromPSObjectForRemoting(PSObject serializedErrorRecord) { ErrorRecord record = new ErrorRecord(); record.ConstructFromPSObjectForRemoting(serializedErrorRecord); return(record); }
/// <summary> /// Create an ErrorRecord object from serialized ErrorRecord. /// serializedErrorRecord PSObject is in the format returned /// by ToPSObjectForRemoting method. /// </summary> /// /// <param name="serializedErrorRecord"> /// PSObject to convert to ErrorRecord /// </param> /// /// /// <returns> /// ErrorRecord convert from mshObject. /// </returns> /// /// /// <exception cref="ArgumentNullException"> /// Thrown if mshObject parameter is null. /// </exception> /// internal static ErrorRecord FromPSObjectForRemoting ( PSObject serializedErrorRecord ) { ErrorRecord er = new ErrorRecord(); er.ConstructFromPSObjectForRemoting(serializedErrorRecord); return er; }
internal static ErrorRecord FromPSObjectForRemoting(PSObject serializedErrorRecord) { ErrorRecord record = new ErrorRecord(); record.ConstructFromPSObjectForRemoting(serializedErrorRecord); return record; }