<div class="content" name="GetPublisherProperty" uuid="2b635116-2919-43c3-909a-a3030a494016"><p>The GetPublisherProperty method gets the
application-specific <span><a href="e74594a9-404c-4729-91f4-3fe4453cdf4d#gt_7db8a6a0-d924-48bb-b9f3-08fcd58d0dc5" data-linktype="relative-path">publisher</a></span> property
of the <span><a href="0d617a76-fc58-455c-9e30-1a8436c5f73a" data-linktype="relative-path">subscription</a></span>. See
publisher properties in section 3.1.1.2.</p><dl>
<dd>
<div><pre> [id(13), helpstring(&#34;method GetPublisherProperty&#34;)] HRESULT GetPublisherProperty(
   [in] BSTR bstrPropertyName,
   [out, retval] VARIANT* propertyValue
 );
</pre></div>
</dd></dl><p><b>bstrPropertyName: </b>The application-specific
name for publisher property. The format for the publisher property name MUST
adhere to the format specified in section <span><a href="6e22df28-0d31-46f1-baab-5b37f15c3b33" data-linktype="relative-path">2.2.2.1</a></span>. </p><p><b>propertyValue: </b>If the function returns a
success <span><a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a></span>,
this MUST contain the application-specific publisher property value which MUST
be of the type specified in <span><a href="424e0b76-d9e5-4c2e-9bcd-1bc2cdf45cdd" data-linktype="relative-path">2.2.2.2</a></span>.</p><p><b>Return Values: </b>An HRESULT specifying success
or failure. All success codes MUST be treated the same, and all failure codes
MUST be treated the same.</p><p>When this method is invoked, the <span><a href="e74594a9-404c-4729-91f4-3fe4453cdf4d#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a></span> MUST validate
the <i>bstrPropertyName</i> parameter. If validation fails, the server MUST
fail the call, returning a failure HRESULT back to the client. The server MUST
then check to see if the value for this property is associated with the state
of the instance of the DCOM <span><a href="e74594a9-404c-4729-91f4-3fe4453cdf4d#gt_8bb43a65-7a8c-4585-a7ed-23044772f8ca" data-linktype="relative-path">object</a></span> servicing
this call specific to publisher properties. The server MUST verify that the
value was previously set on this DCOM object instance servicing this method
call. If not, the server MUST fail the call. Otherwise, the server MUST return
the value of the property.</p></div>