다음을 통해 공유


systemId Property (IXMLDOMEntity)

 

Contains the system identifier associated with the entity.

Script Syntax

strValue = oXMLDOMEntity.systemId;  

Visual Basic Syntax

strValue = oXMLDOMEntity.systemId  

C/C++ Syntax

HRESULT get_systemId(  
    BSTR *systemID);  

Parameters

systemID[out, retval]
The system identifier associated with the entity, if specified. If the system identifier is not specified, contains the empty string.

C/C++ Return Values

S_OK
The value returned if successful.

S_FALSE
The value returned when no system ID is specified.

E_INVALIDARG
The value returned if the systemID parameter is Null.

Example

IXMLDOMEntity *pIXMLDOMEntity = NULL;
VARIANT varName ;
HRESULT hr;

try
{
   // See help on IXMLDOMEntity::get_notationName method for definition of 
   // the GetFirstEntity() method.
   pIXMLDOMEntity = GetFirstEntity();

   if(pIXMLDOMEntity)
   {
      hr = pIXMLDOMEntity->get_systemId(&varName);
      if(SUCCEEDED(hr))
         ::MessageBox(NULL, _bstr_t(varName), _T("Public ID"), MB_OK);
      pIXMLDOMEntity->Release();
   }
}
catch(...)
{
   if(pIXMLDOMEntity)
      pIXMLDOMEntity->Release();
   DisplayErrorToUser();
}

Remarks

String. The property is read-only. If the system identifier is not specified, the property contains the empty string.

Versioning

Implemented in:

MSXML 3.0, MSXML 6.0

Applies to

IXMLDOMEntity