DiscoveryDataRecordFile Class
Class used to create an ad hoc discovery data record (DDR) file on the site server. This class supersedes the ISMSResGen COM automation class.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages.Server
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Inheritance Hierarchy
System.Object
Microsoft.ConfigurationManagement.Messaging.Framework.MessageFileBase
Microsoft.ConfigurationManagement.Messaging.Framework.VarFile
Microsoft.ConfigurationManagement.Messaging.Framework.ConvertibleVarFile<T>
Microsoft.ConfigurationManagement.Messaging.Messages.Server.DdmMessageFile<T>
Microsoft.ConfigurationManagement.Messaging.Messages.Server.DiscoveryDataRecordFile
Syntax
[SerializableAttribute]
public sealed class DiscoveryDataRecordFile : DdmMessageFile<IMessage>
[SerializableAttribute]
public ref class DiscoveryDataRecordFile sealed : DdmMessageFile<IMessage^>
<SerializableAttribute>
Public NotInheritable Class DiscoveryDataRecordFile
Inherits DdmMessageFile(Of IMessage)
Constructors
Name | Description | |
---|---|---|
DiscoveryDataRecordFile(String) | Initializes a new instance of the DiscoveryDataRecordFile class. |
Properties
Name | Description | |
---|---|---|
AgentName | Gets the agent name. (Overrides DdmMessageFile<T>.AgentName.) |
|
Architecture | Gets or sets an architecture name that can refer to an existing or new architecture. A single word, such as Car, would identify the SMS_R_Car resource class. A multi-word string, such as Carpool Intentory, would identify the SMS_R_CarpoolInventory resource class. A DMTF-formatted string such as ACME|Car|1.0 would identify the SMS_R_Acme_Car_1_0 resource class. The string "System" identifies a computer system. |
|
BuildNumber | Gets or sets the build number that the status message comes from. The default value is the build version of the binary. (Inherited from VarFile.) |
|
FileSuffix | Gets the file suffix. (Overrides MessageFileBase.FileSuffix.) |
|
IsSigned | If true, the file is signed. (Inherited from VarFile.) |
|
Settings | Gets the properties and settings for the message. (Inherited from MessageFileBase.) |
|
SigningCertificate | Gets or sets the certificate to use for signing. This property is ignored unless IsSigned is true. (Inherited from VarFile.) |
|
SiteCode | Gets or sets the site code for the DDM message. (Inherited from DdmMessageFile<T>.) |
|
Trusted | Gets or sets a value that indicates whether sending will use a trusted (authenticated) inbox. The default value is false. (Inherited from MessageFileBase.) |
Methods
Name | Description | |
---|---|---|
AddDateTimeArrayProperty(String, DdmDiscoveryFlags, DateTime[]) | Adds an array of DateTime objects to the DDR. |
|
AddDateTimeProperty(String, DdmDiscoveryFlags, DateTime) | Adds a date property to the DDR. |
|
AddDdmProperty(DdmProperty) | Adds a DDM property to the DDM file. (Inherited from DdmMessageFile<T>.) |
|
AddIntegerProperty(String, DdmDiscoveryFlags, Int32) | Adds an integer property to the DDR. |
|
AddIntegerPropertyArray(String, DdmDiscoveryFlags, Int32[]) | Adds an array of integers to the DDR. |
|
AddStringProperty(String, DdmDiscoveryFlags, UInt32, String) | Adds a string property to the DDR. |
|
AddStringPropertyArray(String, DdmDiscoveryFlags, UInt32, String[]) | Adds an array of strings to the DDR. |
|
ConvertMessage(IMessage) | Converts an existing message to a VarFile representation. (Overrides ConvertibleVarFile<T>.ConvertMessage(T).) |
|
Discover() | Automatically discovers local information for sending a message. (Inherited from MessageFileBase.) |
|
Equals(Object) | (Inherited from Object.) |
|
GenerateFileName() | Generates a random name for the output file. (Inherited from MessageFileBase.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
Serialize() | Serializes to a VarFile byte stream. (Inherited from VarFile.) |
|
SerializeToFile(String) | Creates a file with a random file name and writes it to the output path. (Inherited from MessageFileBase.) |
|
SerializeToInbox() | Creates a file and writes it directly to the appropriate inbox. If the Configuration Manager site server is not present on the local machine where this is run and HostName is not set, an exception will be raised. (Inherited from MessageFileBase.) |
|
SerializeToInbox(String) | Obsolete. Use SerializeToInbox and specify the server name by using HostName. Creates a file and writes directly to the appropriate inbox. If the Configuration Manager site server is not present on the remote machine where this is run, an exception will be raised. (Inherited from MessageFileBase.) |
|
ToString() | (Inherited from Object.) |
|
Validate() | Validates that all required properties are set for the message to be successfully sent. (Inherited from VarFile.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IMessageBase.Settings | Gets the properties and settings for the message.(Inherited from MessageFileBase.) |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.ConfigurationManagement.Messaging.Messages.Server Namespace
Return to top