コード例 #1
0
ファイル: WbemClient.cs プロジェクト: billmoling/wbemtools
        public CimClassPathList Associators(AssociatorsWithClassNameOpSettings settings)
        {
            SingleResponse response = MakeSingleRequest("Associators", settings);

            if (response.Value == null)
            {
                return new CimClassPathList();  // return an empty list
            }

            CheckSingleResponse(response, typeof(CimClassPathList));

            return (CimClassPathList)response.Value;
        }
コード例 #2
0
ファイル: WbemClient.cs プロジェクト: billmoling/wbemtools
        public void Associators(AssociatorsWithClassNameOpSettings settings, CimDataTypeHandler callBack)
        {
            ParseResponse pr = new ParseResponse();

            string opXml = Wbem.CimXml.CreateRequest.ToXml(settings, this.DefaultNamespace);
            string respXml = ExecuteRequest("Associators", opXml);

            pr.ParseXml(respXml, callBack);
        }