47 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, MimeType, m_MimeType, m_pHandle);
48 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(Int32, Width, m_Width, m_pHandle);
49 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(Int32, Height, m_Height, m_pHandle);
50 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(Int32, Depth, m_Depth, m_pHandle);
51 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, UrlPath, m_UrlPath, m_pHandle);
64 DeviceIcon(String^ mimeType, Int32 width, Int32 height, Int32 depth, String^ urlPath) :
96 property String^ Description
102 Helpers::ThrowOnError((*m_pHandle)->GetDescription(s));
104 return gcnew String(s);
108 property Uri^ DescriptionUrl
112 return marshal_as<Uri^>((*m_pHandle)->GetDescriptionUrl());
116 property Uri^ UrlBase
120 return marshal_as<Uri^>((*m_pHandle)->GetURLBase());
124 property Uri^ IconUrl
128 return marshal_as<Uri^>((*m_pHandle)->GetIconUrl());
132 property TimeSpan^ LeaseTime
136 return marshal_as<TimeSpan>((*m_pHandle)->GetLeaseTime());
140 property String^ UUID
144 return gcnew String((*m_pHandle)->GetUUID());
148 property String^ FriendlyName
152 return gcnew String((*m_pHandle)->GetFriendlyName());
156 property String^ TypeName
160 return gcnew String((*m_pHandle)->GetType());
164 property String^ ModelDescription
168 return gcnew String((*m_pHandle)->GetModelDescription());
172 property String^ ParentUUID
176 return gcnew String((*m_pHandle)->GetParentUUID());
180 property IEnumerable<Service^>^ Services
182 IEnumerable<Service^>^
get();
185 property IEnumerable<DeviceData^>^ EmbeddedDevices
187 IEnumerable<DeviceData^>^
get();
202 DeviceData^ FindEmbeddedDeviceByType(String^ type);
203 Service^ FindServiceById(String^ serviceId);
204 Service^ FindServiceByType(String^ type);
205 Service^ FindServiceBySCPDURL(Uri^ url);
206 Service^ FindServiceByControlURL(Uri^ url);
207 Service^ FindServiceByEventSubURL(Uri^ url);
211 virtual Boolean Equals(Object^ obj)
override 216 if (!this->GetType()->IsInstanceOfType(obj))
219 return (*m_pHandle == *((
DeviceData^)obj)->m_pHandle);
227 throw gcnew ArgumentNullException(
"devData");
Definition: DeviceData.h:88
Definition: DeviceData.h:41
The PLT_DeviceIcon class represents a given instance of a UPnP device icon.
Definition: PltDeviceData.h:63
The PLT_DeviceData class holds information about a device being advertised or found by a control poin...
Definition: PltDeviceData.h:93
Definition: Helpers.h:274
bool IsNull() const
Returns whether this references a NULL object.
Definition: NptReferences.h:130
Definition: NptStrings.h:57