UnpackNALPath-Methode in Klasse SMS_NAL_Methods

Die UnPackNALPath Methode im Configuration Manager decodiert einen NAL-Pfad (Network Abstraction Layer) in seine Komponenten.

Die folgende Syntax wurde aus Managed Object Format (MOF)-Code vereinfacht und definiert die Methode.

Syntax

SInt32 UnPackNALPath(
     String NALPath,
     String DisplayQualifiers[],
     String NALType,
     String NetworkOSPath,
     String NetworkConnectionQualifiers[]
);

Parameter

NALPath Datentyp: String

Qualifikanten: [in]

NAL-Pfad, der decodiert werden soll.

DisplayQualifiers Datentyp: String Array

Qualifikanten: [raus]

Von der Configuration Manager-Konsole verwendete Qualifizierer. Siehe die Eigenschaft der PackNALPath-Methode in KlasseDisplayQualifiers SMS_NAL_Methods.

NALType Datentyp: String

Qualifikanten: [raus]

Der vom Netzwerkbetriebssystem angegebene NAL-Typ. Siehe die Eigenschaft der PackNALPath-Methode in KlasseNALType SMS_NAL_Methods.

NetworkOSPath Datentyp: String

Qualifikanten: [raus]

Pfad des Netzwerkbetriebssystems. Siehe die Eigenschaft der PackNALPath-Methode in KlasseNetworkOSPath SMS_NAL_Methods.

NetworkConnectionQualifiers Datentyp: String Array

Qualifikanten: [raus]

Komponentenspezifische Qualifizierer für Configuration Manager. Siehe die Eigenschaft der PackNALPath-Methode in KlasseNetworkConnectionQualifiers SMS_NAL_Methods.

Rückgabewerte

Ein SInt32 Datentyp, der 0 ist, um Erfolg anzuzeigen, oder ungleich null, um Fehler anzuzeigen.

Informationen zum Behandeln zurückgegebener Fehler finden Sie unter Informationen zu Configuration Manager-Fehlern.

Beispielcode

Im folgenden Beispiel wird ein NAL-Pfad decodiert.

Dim clsNALMethods As SWbemObject
Dim NALPath As String
Dim DisplayQuals() As Variant
Dim NALType As String
Dim NOSPath As String
Dim NOSQuals() As Variant
Dim instResources As SWbemObjectSet
Dim instResource As SWbemObject
Dim Query As String

Set clsNALMethods = Services.Get("SMS_NAL_Methods")

Query = "SELECT * FROM SMS_SystemResourceList " & _
        "WHERE RoleName=""SMS Distribution Point"" AND SiteCode=""<site code>"""
Set instResources = Services.ExecQuery(Query, , wbemFlagForwardOnly Or wbemFlagReturnImmediately)

For Each instResource In instResources
    NALPath = instResource.NALPath

    clsNALMethods.UnPackNALPath NALPath, DisplayQuals, NALType, NOSPath, NOSQuals
    MsgBox "Path = " & NALPath & vbCrLf & _
           "Display = " & DisplayQuals(0) & vbCrLf & _
           "Type = " & NALType & vbCrLf & _
           "NOSPath = " & NOSPath & vbCrLf & _
           "NOSQual = " & NOSQuals(0)
Next

Anforderungen

Laufzeitanforderungen

Weitere Informationen finden Sie unter Anforderungen an die Configuration Manager Server-Laufzeit.

Entwicklungsanforderungen

Weitere Informationen finden Sie unter Entwicklungsanforderungen für Configuration Manager Server.

Siehe auch

SMS_NAL_Methods ClassPackNALPath-Methode in Class SMS_NAL_Methods