Delen via


Methode UnPackNALPath in klasse SMS_NAL_Methods

De UnPackNALPath methode, in Configuration Manager, decodeert een NAL-pad (Network Abstraction Layer) in de bijbehorende onderdelen.

De volgende syntaxis is vereenvoudigd van 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

Kwalificatie: [in]

NAL-pad dat moet worden gedecodeerd.

DisplayQualifiers
Gegevenstype: String Matrix

Kwalificatie: [uit]

Kwalificaties die worden gebruikt door de Configuration Manager-console. Zie de eigenschap van methode DisplayQualifiersPackNALPath in klasse SMS_NAL_Methods.

NALType
Gegevenstype: String

Kwalificatie: [uit]

Het NAL-type dat is opgegeven door het netwerkbesturingssysteem. Zie de eigenschap van methode NALTypePackNALPath in klasse SMS_NAL_Methods.

NetworkOSPath
Gegevenstype: String

Kwalificatie: [uit]

Netwerkbesturingssysteempad. Zie de eigenschap van methode NetworkOSPathPackNALPath in klasse SMS_NAL_Methods.

NetworkConnectionQualifiers
Gegevenstype: String Matrix

Kwalificatie: [uit]

Configuration Manager componentspecifieke kwalificaties. Zie de eigenschap van methode NetworkConnectionQualifiersPackNALPath in klasse SMS_NAL_Methods.

Retourwaarden

Een SInt32 gegevenstype dat 0 is om aan te geven dat het is geslaagd of niet nul om een fout aan te geven.

Zie Over Configuration Manager-fouten voor informatie over het verwerken van geretourneerde fouten.

Voorbeeldcode

In het volgende voorbeeld wordt een NAL-pad gedecoded.

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

Runtimevereisten

Zie runtimevereisten voor Configuration Manager server voor meer informatie.

Ontwikkelingsvereisten

Zie vereisten voor Configuration Manager serverontwikkeling voor meer informatie.

Zie ook

SMS_NAL_Methods klasse
Methode PackNALPath in klasse SMS_NAL_Methods