Skip to content

New GSharedContactPostalAddressObj

Spencer Varney edited this page Dec 9, 2016 · 4 revisions

New-GSharedContactPostalAddressObj

SYNOPSIS

Create a new shared contact postal address object.

SYNTAX

New-GSharedContactPostalAddressObj [[-Rel] <PostalRelEnum>] [[-MailClass] <String>] [[-Usage] <String>]
 [[-Label] <String>] [[-Primary] <Boolean>] [[-Agent] <String>] [[-Housename] <String>] [[-Street] <String>]
 [[-PoBox] <String>] [[-Neighborhood] <String>] [[-City] <String>] [[-Subregion] <String>] [[-Region] <String>]
 [[-Postcode] <String>] [[-Country] <String>] [[-FormattedAddress] <String>] [-WhatIf] [-Confirm]

DESCRIPTION

Create a new shared contact postal address object.

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\> New-GSharedContactPostalAddressObj

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-Rel

Type of the address. Unless specified work type is assumed.

Possible values: work, home, other

Type: PostalRelEnum
Parameter Sets: (All)
Aliases: 
Accepted values: work, home, other

Required: False
Position: 0
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-MailClass

Classes of mail accepted at the address. Unless specified both is assumed.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Usage

The context in which this addess can be used. Local addresses may differ in layout from general addresses, and frequently use local script (as opposed to Latin script) as well, though local script is allowed in general addresses. Unless specified general usage is assumed.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Label

A general label for the address.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 3
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Primary

Specifies the address as primary. Default value is false.

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: 4
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Agent

The agent who actually receives the mail. Used in work addresses. Also for 'in care of' or 'c/o'.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 5
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Housename

Used in places where houses or buildings have names (and not necessarily numbers), eg. "The Pillars".

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 6
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Street

Can be street, avenue, road, etc. This element also includes the house number and room/apartment/flat/floor number.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 7
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-PoBox

Covers actual P.O. boxes, drawers, locked bags, etc. This is usually but not always mutually exclusive with street.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 8
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Neighborhood

This is used to disambiguate a street address when a city contains more than one street with the same name, or to specify a small place whose mail is routed through a larger postal town. In China it could be a county or a minor city.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 9
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-City

Can be city, village, town, borough, etc. This is the postal town and not necessarily the place of residence or place of business.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 10
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Subregion

Handles administrative districts such as U.S. or U.K. counties that are not used for mail addressing purposes. Subregion is not intended for delivery addresses.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 11
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Region

A state, province, county (in Ireland), Land (in Germany), departement (in France), etc.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 12
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Postcode

Postal code. Usually country-wide, but sometimes specific to the city (e.g. "2" in "Dublin 2, Ireland" addresses).

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 13
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-Country

The name or code of the country.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 14
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-FormattedAddress

The full, unstructured postal address.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 15
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES

Part of the gShell Project, relating to the Google Shared Contacts API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally