示例#1
0
        internal static ErrorRecord FromPSObjectForRemoting(PSObject serializedErrorRecord)
        {
            ErrorRecord record = new ErrorRecord();

            record.ConstructFromPSObjectForRemoting(serializedErrorRecord);
            return(record);
        }
示例#2
0
 /// <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;
 }
示例#3
0
 internal static ErrorRecord FromPSObjectForRemoting(PSObject serializedErrorRecord)
 {
     ErrorRecord record = new ErrorRecord();
     record.ConstructFromPSObjectForRemoting(serializedErrorRecord);
     return record;
 }