/// <summary> /// Create a new MimeType object. /// </summary> /// <param name="mimeTypeCD">Initial value of the MimeTypeCD property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="contentType">Initial value of the ContentType property.</param> /// <param name="fileExt">Initial value of the FileExt property.</param> public static MimeType CreateMimeType(global::System.String mimeTypeCD, global::System.String description, global::System.String contentType, global::System.String fileExt) { MimeType mimeType = new MimeType(); mimeType.MimeTypeCD = mimeTypeCD; mimeType.Description = description; mimeType.ContentType = contentType; mimeType.FileExt = fileExt; return mimeType; }
/// <summary> /// Deprecated Method for adding a new object to the MimeTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMimeTypes(MimeType mimeType) { base.AddObject("MimeTypes", mimeType); }