UnPackNALPath-methode in Class SMS_NAL_Methods

De UnPackNALPath methode, in Configuration Manager, decodeert een NAL-pad (Network Abstraction Layer) in zijn componenten.

De volgende syntaxis is vereenvoudigd ten opzichte van de MOF-code (Managed Object Format) en definieert de methode.

Syntaxis

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

Parameters

NALPath Gegevenstype: String

Kwalificaties: [in]

NAL-pad dat moet worden gedecodeerd.

DisplayQualifiers Gegevenstype: String Array

Kwalificaties: [out]

Kwalificaties die worden gebruikt door de Configuration Manager-console. Zie de DisplayQualifiers eigenschap van PackNALPath Method in Class SMS_NAL_Methods.

NALType Gegevenstype: String

Kwalificaties: [out]

Het type NAL dat is opgegeven door het netwerkbesturingssysteem. Zie de NALType eigenschap van PackNALPath Method in Class SMS_NAL_Methods.

NetworkOSPath Gegevenstype: String

Kwalificaties: [out]

Pad van besturingssysteem op netwerk. Zie de NetworkOSPath eigenschap van PackNALPath Method in Class SMS_NAL_Methods.

NetworkConnectionQualifiers Gegevenstype: String Array

Kwalificaties: [out]

Componentspecifieke kwalificaties voor Configuration Manager. Zie de NetworkConnectionQualifiers eigenschap van PackNALPath Method in Class SMS_NAL_Methods.

Retourwaarden

Een SInt32 gegevenstype van 0 om een geslaagde actie aan te geven of een andere waarde dan nul om een fout aan te geven.

Zie Info over fouten in Configuration Manager voor informatie over het afhandelen van geretourneerde fouten.

Voorbeeldcode

In het volgende voorbeeld wordt een NAL-pad gedecodeerd.

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

Vereisten

Runtime vereisten

Zie de vereisten voor de runtime van de Configuration Manager-server voor meer informatie.

Ontwikkelingsvereisten

Zie Vereisten voor de ontwikkeling van Configuration Manager-servers voor meer informatie.

Zie ook

SMS_NAL_Methods ClassPackNALPath-methode in Class SMS_NAL_Methods