| Visual Basic (Declaration) | |
|---|---|
Public Function InitializeTaskAsync( _ Optional ByVal id As String _ ) As Task(Of ArcGISPortalGroup) | |
| C# | |
|---|---|
public Task<ArcGISPortalGroup> InitializeTaskAsync( string id ) | |
This Method initializes a single Portal.ArcGISPortalGroup. Portal.ArcGISPortalGroup objects are collections (aka. groups) of items, usually related to a specific area of interest such as maps (aka. WebMap), applications, and tools. Groups allow members to contribute items as a useful way to collaborate. This Method finds a specific group within ArcGIS Online (AGOL) or ArcGIS Portal by providing the Id value.
You do not have to be a logged in user using the IdentityManager to get information from this Method. You can gain this information from anonymous access. However, to obtain information about an group that has a Portal.PortalAccess level of Private or Shared you need to use the IdentityManager by supplying the appropriate username/password credentials. As AGOL and ArcGIS Portal require the use of long term tokens to access secured information (i.e. information that is Private/Shared), you should remember to set the IdentityManager.TokenGenerationReferer Property to the correct string required by your development platform.
Parameters
- id
- The group id.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8