KnownFolders.HomeGroup | homeGroup property

Applies to Windows only

Gets the HomeGroup folder.

Syntax


var homeGroup = Windows.Storage.KnownFolders.homeGroup;

Property value

Type: StorageFolder

The HomeGroup folder.

Remarks

Note  Content in the Documents library of a HomeGroup won't be visible to your app regardless of the capabilities declared in your app's manifest and regardless of the user's sharing settings.

To use this property, the user's machine must have a HomeGroup set up and your app must have at least one of the following capabilities: Pictures library, Music library, or Videos library. Learn more about these capabilities in Access to user resources using the Windows Runtime.

When your app gets the HomeGroup folder, it will see only the libraries that correspond to the capabilities declared in your app's manifest. For example, an app that has only the Pictures library capability will see only the Pictures libraries in the HomeGroup folder.

You can enumerate files and folders in this location, but when you create a query, the shapes you can specify with CommonFileQuery and CommonFolderQuery are limited to the defaultQuery, orderByName, and orderBySearchRank values.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

KnownFolders
HomeGroup app sample

 

 

Show:
© 2014 Microsoft