Share via


ManagementGroup.GetMonitoringSecureDataHealthServiceReferenceByHealthServiceId Method

Definition

Caution

Please use Security.GetMonitoringSecureDataHealthServiceReferenceByHealthServiceId()

Gets the secure references by id of the health service.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::Security::MonitoringSecureDataHealthServiceReference ^> ^ GetMonitoringSecureDataHealthServiceReferenceByHealthServiceId(Nullable<Guid> healthServiceId);
[System.Obsolete("Please use Security.GetMonitoringSecureDataHealthServiceReferenceByHealthServiceId()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.Security.MonitoringSecureDataHealthServiceReference> GetMonitoringSecureDataHealthServiceReferenceByHealthServiceId (Guid? healthServiceId);
member this.GetMonitoringSecureDataHealthServiceReferenceByHealthServiceId : Nullable<Guid> -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.Security.MonitoringSecureDataHealthServiceReference>
Public Function GetMonitoringSecureDataHealthServiceReferenceByHealthServiceId (healthServiceId As Nullable(Of Guid)) As ReadOnlyCollection(Of MonitoringSecureDataHealthServiceReference)

Parameters

healthServiceId
Nullable<Guid>

The health service id.

Returns

Returns the secure references.

Attributes

Examples

The following example demonstrates a use of the GetMonitoringSecureDataHealthServiceReferenceByHealthServiceIdmethod.

Remarks

The GetMonitoringSecureDataHealthServiceReferenceByHealthServiceIdmethod helps you to determine which profiles and which profile RunAs account the health service uses.

Applies to