types/attachments.types.ps1xml
<?xml version="1.0" encoding="utf-8" ?>
<!-- ******************************************************************* These sample files contain formatting information used by the Windows PowerShell engine. Do not edit or change the contents of this file directly. Please see the Windows PowerShell documentation or type Get-Help Update-TypeData for more information. Copyright (c) Microsoft Corporation. All rights reserved. THIS SAMPLE CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. IF THIS CODE AND INFORMATION IS MODIFIED, THE ENTIRE RISK OF USE OR RESULTS IN CONNECTION WITH THE USE OF THIS CODE AND INFORMATION REMAINS WITH THE USER. ******************************************************************** --> <Types> <!--PsModDev.Attachment--> <Type> <Name>PsModDev.Attachment</Name> <Members> <MemberSet> <Name>PSStandardMembers</Name> <Members> <PropertySet> <Name>DefaultDisplayPropertySet</Name> <ReferencedProperties> <Name>id</Name> <Name>media</Name> <Name>contentType</Name> <Name>_etag</Name> <Name>_rid</Name> <Name>_ts</Name> </ReferencedProperties> </PropertySet> </Members> </MemberSet> <ScriptProperty> <Name>Etag</Name> <GetScriptBlock> $this._etag.Replace( '"', '' ) </GetScriptBlock> </ScriptProperty> <AliasProperty> <Name>ResourceId</Name> <ReferencedMemberName>_rid</ReferencedMemberName> </AliasProperty> <ScriptProperty> <Name>Timestamp</Name> <GetScriptBlock> [System.DateTime]::new( 1970, 1, 1, 0, 0, 0, 0, [System.DateTimeKind]::Utc).AddSeconds( $this._ts ).ToLocalTime() </GetScriptBlock> </ScriptProperty> <AliasProperty> <Name>Uri</Name> <ReferencedMemberName>_self</ReferencedMemberName> </AliasProperty> </Members> </Type> </Types> |