Un-publishes the attribute from the system.

C# |
public void Unpublish( ResourceAttribute attribute, bool throwOnFailure )

- attribute (ResourceAttribute)
- The attribute being "un-published".
- throwOnFailure (Boolean)
- Indicates whether we want the method to throw an exception if it fails to "un-publish" the attribute.

The service may "un-publish" details about an attribute at anytime during its lifetime.
NOTE: If more than one service instance publishes the same attribute with host-level scope, un-publishing the attribute will simply remove one of the publishing references. This means the system will continue to use the last value published for the attribute until all service instances have un-published the same attribute.

Exception | Condition |
---|---|
[SoamException] | If attribute could not be "un-published" and "throwOnFailure" is set to [true]. |

[ResourceAttribute]