Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.71 KB

getdependency-method-in-class-sms_collection.md

File metadata and controls

62 lines (41 loc) · 1.71 KB
title titleSuffix description ms.date ms.subservice ms.service ms.topic ms.assetid author ms.author manager ms.localizationpriority ms.collection ms.reviewer
GetDependency method
Configuration Manager
Get the collection relationship info which the input collection depends on.
11/30/2020
sdk
configuration-manager
reference
32efccb1-4a3a-4811-902d-e26dd9c9c7ba
Banreet
banreetkaur
apoorvseth
low
tier3
mstewart,aaroncz

GetDependency method in class SMS_Collection

Starting in version 2010, the GetDependency WMI class method in Configuration Manager gets the collection relationship info which the input collection depends on.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

Syntax

sint32 GetDependency(
    string Relationship[]
);

Parameters

Relationship

Data type: String[] (array)

Qualifiers: [out]

JSON string array of collection dependency relationship.

Return values

An SInt32 data type that is 0 to indicate success, or non-zero to indicate failure.

For more information about handling returned errors, see About Configuration Manager errors.

Requirements

Runtime requirements

For more information, see Configuration Manager server runtime requirements.

Development requirements

For more information, see Configuration Manager server development requirements.

See also

SMS_Collection server WMI class

GetDependent method